File tree 2 files changed +2
-10
lines changed
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"
7
7
ENV TIMEOUT="30"
8
8
ENV APP_LOG_LEVEL="info"
9
9
ENV APP_PORT="8000"
10
- ENV LOG_DIR ="/srv/logs "
10
+ ENV APPLICATION_DIR ="/srv/application "
11
11
12
- USER root
13
-
14
- RUN mkdir $LOG_DIR \
15
- && chown app:app $LOG_DIR
16
-
17
- USER app
18
12
RUN source /srv/virtenv/bin/activate && pip install gunicorn==19.4.5
19
13
20
14
EXPOSE $APP_PORT
21
- VOLUME ["$LOG_DIR" ]
22
15
ADD start-gunicorn.sh /home/app/start-gunicorn.sh
23
16
# RUN chmod +x /home/app/start-gunicorn.sh
24
17
Original file line number Diff line number Diff line change @@ -16,6 +16,5 @@ gunicorn $APP_MODULE \
16
16
--workers $APP_WORKERS_COUNT \
17
17
--timeout $TIMEOUT \
18
18
--log-level=$APP_LOG_LEVEL \
19
- --log-file=" $LOG_DIR /gunicorn.log" \
20
- --access-logfile=" $LOG_DIR /access.log" \
19
+ --log-file=" -" \
21
20
--chdir=$APPLICATION_DIR
You can’t perform that action at this time.
0 commit comments