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 base as builder
|
||||
RUN mkdir /install
|
||||
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
|
||||
FROM alpine
|
||||
FROM python:3.6
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
RUN pip install -r requirements.txt
|
||||
CMD ["gunicorn", "-w 4", "main:app"]
|
||||
|
|
Loading…
Reference in a new issue