|
|
@ -1,17 +1,18 @@
|
|
|
|
FROM alpine:3.8
|
|
|
|
FROM alpine:3.9
|
|
|
|
# python3 shared with most images
|
|
|
|
# python3 shared with most images
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
python3 py3-pip git bash \
|
|
|
|
python3 py3-pip git bash \
|
|
|
|
&& pip3 install --upgrade pip
|
|
|
|
&& pip3 install --upgrade pip
|
|
|
|
|
|
|
|
# Shared layer between admin, rspamd, postfix, dovecot, unbound and nginx
|
|
|
|
RUN pip3 install git+https://github.com/usrpro/MailuStart.git#egg=mailustart
|
|
|
|
RUN pip3 install git+https://github.com/usrpro/MailuStart.git#egg=mailustart
|
|
|
|
# Image specific layers under this line
|
|
|
|
# Image specific layers under this line
|
|
|
|
RUN mkdir -p /app
|
|
|
|
RUN mkdir -p /app
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
COPY requirements-prod.txt requirements.txt
|
|
|
|
COPY requirements-prod.txt requirements.txt
|
|
|
|
RUN apk add --no-cache libressl curl postgresql-libs mariadb-connector-c \
|
|
|
|
RUN apk add --no-cache openssl curl postgresql-libs mariadb-connector-c \
|
|
|
|
&& apk add --no-cache --virtual build-dep \
|
|
|
|
&& apk add --no-cache --virtual build-dep \
|
|
|
|
libressl-dev libffi-dev python3-dev build-base postgresql-dev mariadb-connector-c-dev \
|
|
|
|
openssl-dev libffi-dev python3-dev build-base postgresql-dev mariadb-connector-c-dev \
|
|
|
|
&& pip3 install -r requirements.txt \
|
|
|
|
&& pip3 install -r requirements.txt \
|
|
|
|
&& apk del --no-cache build-dep
|
|
|
|
&& apk del --no-cache build-dep
|
|
|
|
|
|
|
|
|
|
|
|