File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -7,18 +7,11 @@ ENV APP_WORKERS_COUNT="4"
77ENV TIMEOUT="30"
88ENV APP_LOG_LEVEL="info"
99ENV APP_PORT="8000"
10- ENV LOG_DIR ="/srv/logs "
10+ ENV APPLICATION_DIR ="/srv/application "
1111
12- USER root
13-
14- RUN mkdir $LOG_DIR \
15- && chown app:app $LOG_DIR
16-
17- USER app
1812RUN source /srv/virtenv/bin/activate && pip install gunicorn==19.4.5
1913
2014EXPOSE $APP_PORT
21- VOLUME ["$LOG_DIR" ]
2215ADD start-gunicorn.sh /home/app/start-gunicorn.sh
2316# RUN chmod +x /home/app/start-gunicorn.sh
2417
Original file line number Diff line number Diff line change @@ -16,6 +16,5 @@ gunicorn $APP_MODULE \
1616 --workers $APP_WORKERS_COUNT \
1717 --timeout $TIMEOUT \
1818 --log-level=$APP_LOG_LEVEL \
19- --log-file=" $LOG_DIR /gunicorn.log" \
20- --access-logfile=" $LOG_DIR /access.log" \
19+ --log-file=" -" \
2120 --chdir=$APPLICATION_DIR
You can’t perform that action at this time.
0 commit comments