Skip to content

Commit

Permalink
The Docker image USER must be an integer
Browse files Browse the repository at this point in the history
If a username is used, OpenShift cannot verify that
the user does in fact map to a user ID other than 0

Signed-off-by: Christian Kadner <[email protected]>
  • Loading branch information
ckadner committed Jan 26, 2023
1 parent 83a3991 commit eb75e14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ COPY --chown=1000:0 xgboost ${MODEL_DIR}/xgboost/
# some models are duplicated for testing and verification
COPY --chown=1000:0 tensorflow/mnist ${MODEL_DIR}/tensorflow/mnist.savedmodel/

USER modelmesh
USER 1000


# Image with additional models used in the FVTs
Expand All @@ -56,4 +56,4 @@ COPY --chown=1000:0 tensorflow/mnist ${FVT_DIR}/tensorflow/mnist.savedmo
COPY --chown=1000:0 tensorflow/mnist ${FVT_DIR}/tensorflow/mnist-dup.savedmodel/
COPY --chown=1000:0 fvt/pytorch/pytorch-mar ${FVT_DIR}/pytorch/pytorch-mar-dup/

USER modelmesh
USER 1000

0 comments on commit eb75e14

Please sign in to comment.