modified dockerfile
This commit is contained in:
parent
eb43f276fd
commit
4ac68d6025
1 changed files with 4 additions and 9 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,11 +1,6 @@
|
||||||
FROM python:3.6-alpine as base
|
FROM alpine
|
||||||
FROM base as builder
|
FROM python:3.6
|
||||||
RUN mkdir /install
|
COPY . /app
|
||||||
WORKDIR /install
|
|
||||||
COPY requirements.txt /requirements.txt
|
|
||||||
RUN pip install --install-option="--prefix=/install" -r /requirements.txt
|
|
||||||
FROM base
|
|
||||||
COPY --from=builder /install /usr/local
|
|
||||||
COPY src /app
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
CMD ["gunicorn", "-w 4", "main:app"]
|
CMD ["gunicorn", "-w 4", "main:app"]
|
||||||
|
|
Loading…
Reference in a new issue