File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed
Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 1- FROM python:3.6
1+ FROM python:3.7.4-alpine3.10 as base
2+ RUN apk add --no-cache build-base libxml2-dev libxslt-dev
3+ COPY ./requirements.txt /requirements.txt
4+ RUN pip3 install --target="/install" -r /requirements.txt
5+
6+
7+ FROM python:3.7.4-alpine3.10
28ENV PYTHONUNBUFFERED 1
9+ RUN apk add --no-cache libxml2-dev libxslt-dev
10+ COPY --from=base /install /usr/local/lib/python3.7/site-packages
311RUN mkdir /app
412WORKDIR /app
5- COPY . .
6- RUN pip3 install --no-cache-dir -r requirements.txt
7-
8- EXPOSE 8085
9-
10- ENTRYPOINT python3 manage.py runserver
13+ COPY ./ ./
14+ RUN pip3 install -r requirements.txt
15+ ENTRYPOINT ["python3" , "manage.py" , "runserver" ]
Original file line number Diff line number Diff line change 1- version : ' 3.7 '
1+ version : ' 3'
22
33services :
44 api :
You can’t perform that action at this time.
0 commit comments