Hanchin commited on
Commit
851f599
·
unverified ·
1 Parent(s): 5b74dbd

fix(app): permission

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -25,7 +25,11 @@ COPY --from=builder /project/__pypackages__/3.9/lib /project/pkgs
25
  # retrieve executables
26
  COPY --from=builder /project/__pypackages__/3.9/bin/* /bin/
27
 
28
- WORKDIR /project
 
 
 
 
29
 
30
  # set command/entrypoint, adapt to fit your needs
31
  CMD ["/bin/gunicorn", "-w", "3", "-b", "0.0.0.0:8080", "--timeout", "300", "app"]
 
25
  # retrieve executables
26
  COPY --from=builder /project/__pypackages__/3.9/bin/* /bin/
27
 
28
+ WORKDIR /home/appuser
29
+
30
+ RUN useradd -m appuser && chown -R appuser:appuser /home/appuser
31
+
32
+ USER appuser
33
 
34
  # set command/entrypoint, adapt to fit your needs
35
  CMD ["/bin/gunicorn", "-w", "3", "-b", "0.0.0.0:8080", "--timeout", "300", "app"]