prebuild image

This commit is contained in:
cupcakearmy 2019-06-17 10:09:38 +02:00
parent cd9c7f3f5a
commit 44e48562aa

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
# BUILDER
FROM python:3.7-alpine as builder
RUN apk add --no-cache alpine-sdk libffi-dev openssl-dev python3-dev freetype-dev
COPY requirements.txt .
RUN pip install -r requirements.txt
# APP
FROM python:3.7-alpine
RUN apk add --no-cache libstdc++ freetype
WORKDIR /app
COPY --from=builder /root/.cache /root/.cache
COPY --from=builder requirements.txt .
RUN pip install -r requirements.txt && rm -rf /root/.cache
#COPY src .
#CMD ["python", "-u", "/app/Mercatus.py"]