From 31464c5c44cd180b222bc6358f1d531950fc51b4 Mon Sep 17 00:00:00 2001 From: hoellen Date: Tue, 9 Jul 2019 11:21:44 +0200 Subject: [PATCH] Change image back to alpine --- core/admin/Dockerfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/core/admin/Dockerfile b/core/admin/Dockerfile index 493b377e..6916a16d 100644 --- a/core/admin/Dockerfile +++ b/core/admin/Dockerfile @@ -11,13 +11,21 @@ RUN mkdir static \ # Actual application -FROM python:3.7 +FROM alpine:3.8 +# python3 shared with most images +RUN apk add --no-cache \ + python3 py3-pip git bash \ + && pip3 install --upgrade pip RUN mkdir -p /app WORKDIR /app COPY requirements-prod.txt requirements.txt -RUN pip install -r requirements.txt +RUN apk add --no-cache libressl curl postgresql-libs mariadb-connector-c \ + && apk add --no-cache --virtual build-dep \ + libressl-dev libffi-dev python3-dev build-base postgresql-dev mariadb-connector-c-dev \ + && pip3 install -r requirements.txt \ + && apk del --no-cache build-dep COPY --from=assets static ./mailu/ui/static COPY mailu ./mailu