Skip to content

Commit 7fc5be2

Browse files
author
JeremyAndress
committed
🐳 new config for dockerfile
1 parent 33e3b53 commit 7fc5be2

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

compose/local/Dockerfile

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
FROM python:3.6
2-
# ENV PYTHONDONTWRITEBYTECODE 1
1+
FROM python:3.6.11
32
ENV PYTHONUNBUFFERED 1
4-
5-
RUN mkdir -p /home/app
6-
7-
ENV HOME=/home/app
3+
ENV ENVTYPE=local
84
ENV APP_HOME=/home/app/web
9-
RUN mkdir $APP_HOME
5+
RUN mkdir -p $APP_HOME
106
WORKDIR $APP_HOME
117

12-
ADD /requirements/local.txt $APP_HOME
8+
ADD /requirements/$ENVTYPE.txt $APP_HOME
9+
RUN pip install -r /home/app/web/$ENVTYPE.txt; mkdir /log;
10+
COPY /src/ $APP_HOME
11+
CMD ["gunicorn","wsgi:app","-b","0.0.0.0:8011","--log-level=info"]
12+
13+
1314

14-
RUN pip install gunicorn; \
15-
pip install -r /home/app/web/local.txt; mkdir /log;
1615

1716

local.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
context: .
3131
dockerfile: ./compose/local/Dockerfile
3232
restart: always
33-
command: gunicorn wsgi:app -b 0.0.0.0:8011 --log-level=info
33+
#command: gunicorn wsgi:app -b 0.0.0.0:8011 --log-level=info
3434
volumes:
3535
- ./src:/home/app/web/
3636
- ./logs:/home/app/web/logs

0 commit comments

Comments
 (0)