Skip to content

Commit

Permalink
Fix: Make OpenShift compliant; consolidate to single Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Hill <nickhill@us.ibm.com>
  • Loading branch information
njhill authored Jan 11, 2023
1 parent 644fd0c commit 37de842
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 35 deletions.
30 changes: 20 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 IBM Corporation
# Copyright 2023 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,13 +12,23 @@
# See the License for the specific language governing permissions and
# limitations under the License.

From quay.io/cloudservices/minio:RELEASE.2021-06-17T00-10-46Z.hotfix.35a0912ff
# Using specific tag for now, there was some reason newer minio versions didn't work
FROM quay.io/cloudservices/minio:RELEASE.2021-06-17T00-10-46Z.hotfix.35a0912ff as minio-examples

EXPOSE 9000
RUN mkdir -p /data1/modelmesh-example-models
COPY sklearn /data1/modelmesh-example-models/sklearn/
COPY lightgbm /data1/modelmesh-example-models/lightgbm/
COPY onnx /data1/modelmesh-example-models/onnx/
COPY pytorch /data1/modelmesh-example-models/pytorch/
COPY xgboost /data1/modelmesh-example-models/xgboost/
COPY tensorflow /data1/modelmesh-example-models/tensorflow/
COPY keras /data1/modelmesh-example-models/keras/

RUN useradd -u 1000 -g 0 && mkdir -p /data1/modelmesh-example-models && chown -R 1000:0 /data1

COPY --chown 1000:0 sklearn /data1/modelmesh-example-models/sklearn/
COPY --chown 1000:0 lightgbm /data1/modelmesh-example-models/lightgbm/
COPY --chown 1000:0 onnx /data1/modelmesh-example-models/onnx/
COPY --chown 1000:0 pytorch /data1/modelmesh-example-models/pytorch/
COPY --chown 1000:0 xgboost /data1/modelmesh-example-models/xgboost/
COPY --chown 1000:0 tensorflow /data1/modelmesh-example-models/tensorflow/
COPY --chown 1000:0 keras /data1/modelmesh-example-models/keras/


# Image with additional models used in the FVTs
FROM minio-examples as minio-fvt

COPY --chown 1000:0 fvt /data1/modelmesh-example-models/fvt/
25 changes: 0 additions & 25 deletions Dockerfile.dev

This file was deleted.

0 comments on commit 37de842

Please sign in to comment.