Skip to content

Commit 90c415d

Browse files
authored
Update Dockerfile with non-root user
aws/sagemaker-inference-toolkit#72
1 parent ad2e036 commit 90c415d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/lgbm/transform/docker/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@ ENTRYPOINT ["python", "/usr/local/bin/dockerd-entrypoint.py"]
4242
CMD ["serve"]
4343

4444
# Define healthcheck
45-
HEALTHCHECK CMD curl --fail http://localhost:8080/ping || exit 1
45+
HEALTHCHECK CMD curl --fail http://localhost:8080/ping || exit 1
46+
47+
# Add and set a non-root user. Issue with sagemaker inference with non-root users linked here- https://github.com/aws/sagemaker-inference-toolkit/issues/72. Please comment the lines below until linked issue is resolved.
48+
RUN useradd -m nonroot
49+
USER nonroot

0 commit comments

Comments
 (0)