From 44e48562aa51cbe5ba53495cb7fba0c8ad70777d Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Mon, 17 Jun 2019 10:09:38 +0200 Subject: [PATCH] prebuild image --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3c62665 --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file