Pull request #44: RED-5718: Add a specific user to the image-prediction service
Merge in RR/image-prediction from RED-5718-imageUser to master * commit '7c7b038491b39d2162e901a5a0ef62b2f1ebd4a9': RED-5718: Add a specific user to the image-prediction service
This commit is contained in:
commit
faf4d7ed0f
10
Dockerfile
10
Dockerfile
@ -21,6 +21,16 @@ RUN python3 -m pip install -e .
|
||||
RUN python3 -m pip install -e incl/pyinfra
|
||||
RUN python3 -m pip install -e incl/pdf2image
|
||||
|
||||
# User for the process to run as
|
||||
RUN groupadd --gid 1001 non-root \
|
||||
&& useradd --uid 1001 --gid 1001 -m non-root
|
||||
|
||||
COPY --chown=1001:1001 ./src/serve.py ./src/serve.py
|
||||
RUN chown -R 1001:1001 ./image_prediction ./image_prediction
|
||||
RUN chown -R 1001:1001 ./config.yaml ./config.yaml
|
||||
RUN chown -R 1001:1001 ./banner.txt ./banner.txt
|
||||
RUN chown -R 1001:1001 ./incl ./incl
|
||||
|
||||
EXPOSE 5000
|
||||
EXPOSE 8080
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user