Skip to content

Commit

Permalink
comment out user statement
Browse files Browse the repository at this point in the history
  • Loading branch information
birm authored Jan 25, 2021
1 parent ef765ae commit 4c687b3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ EXPOSE 4001
# ENV FLASK_APP SlideServer.py
# CMD python -m flask run --host=0.0.0.0 --port=4000

# non-root user
RUN chgrp -R 0 /var && \
chmod -R g+rwX /var && \
chgrp -R 0 /images/uploading && \
chmod -R g+rwX /images/uploading

USER 1001
# The Below BROKE the ability for users to upload images.
# # non-root user
# RUN chgrp -R 0 /var && \
# chmod -R g+rwX /var && \
# chgrp -R 0 /images/uploading && \
# chmod -R g+rwX /images/uploading
#
# USER 1001

#prod only
CMD gunicorn -w 4 -b 0.0.0.0:4000 SlideServer:app --timeout 400

0 comments on commit 4c687b3

Please sign in to comment.