mirror of
https://github.com/workhardbekind/workout-challenge.git
synced 2026-07-04 09:23:32 -04:00
Fixed StravaSync.js
This commit is contained in:
parent
68d3328e8e
commit
56a74bddba
56 changed files with 43 additions and 7 deletions
|
|
@ -42,6 +42,12 @@ COPY supervisord.conf /etc/supervisord.conf
|
|||
# NGINX runtime folder
|
||||
RUN mkdir -p /run/nginx
|
||||
|
||||
# Create an unprivileged system user and adjust ownership of runtime/app folders
|
||||
RUN adduser -S -h /workout_challenge appuser \
|
||||
&& chown -R appuser:appuser /workout_challenge \
|
||||
&& chown -R appuser:appuser /run/nginx \
|
||||
&& chown -R appuser:appuser /usr/share/nginx/html
|
||||
|
||||
# Django data folder with mirgations and sqlite database
|
||||
VOLUME /workout_challenge/src-backend/data
|
||||
|
||||
|
|
@ -52,4 +58,7 @@ EXPOSE 9001
|
|||
# celery flower - monitoring of celery tasks
|
||||
EXPOSE 5555
|
||||
|
||||
# Run as non-root user
|
||||
USER appuser
|
||||
|
||||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue