initial version
This commit is contained in:
parent
0abeea795b
commit
1c7e0b005f
1 changed files with 11 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
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
|
||||||
|
WORKDIR /app
|
||||||
|
CMD ["gunicorn", "-w 4", "main:app"]
|
Loading…
Reference in a new issue