mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
WIP: amavis quarantine frontend
This commit is contained in:
@@ -9,25 +9,26 @@ FROM base AS build
|
||||
|
||||
RUN apk add --update openssl librrd python3-dev libffi-dev \
|
||||
gcc g++ musl-dev libxml2-dev libxslt-dev \
|
||||
libressl-dev jpeg-dev rrdtool-dev file make \
|
||||
openssl-dev jpeg-dev rrdtool-dev file make \
|
||||
gettext freetype-dev cairo-dev cargo git \
|
||||
openldap-dev \
|
||||
mariadb-dev openldap-dev \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
RUN python3 -m venv $VIRTUAL_ENV
|
||||
WORKDIR /tmp
|
||||
COPY . /tmp
|
||||
RUN python -m pip install -U pip pip-tools ruff
|
||||
RUN pip-compile --output-file=requirements.txt pyproject.toml
|
||||
RUN pip-compile --extra=mysql --output-file=mysql-requirements.txt pyproject.toml
|
||||
RUN pip-compile --extra=ldap --output-file=ldap-requirements.txt pyproject.toml
|
||||
RUN pip-compile --extra=dev --output-file=dev-requirements.txt pyproject.toml
|
||||
RUN pip-compile --extra=test --output-file=test-requirements.txt pyproject.toml
|
||||
RUN pip install -r requirements.txt -r ldap-requirements.txt -r test-requirements.txt -r dev-requirements.txt
|
||||
RUN pip install -r requirements.txt -r mysql-requirements.txt -r ldap-requirements.txt -r test-requirements.txt -r dev-requirements.txt
|
||||
|
||||
FROM base AS run
|
||||
COPY docker/doveadm /usr/local/bin
|
||||
RUN chmod +x /usr/local/bin/doveadm
|
||||
COPY --from=build $VIRTUAL_ENV $VIRTUAL_ENV
|
||||
RUN apk add --no-cache --update openssl librrd libxslt libjpeg libressl git rrdtool libmagic sudo sqlite libldap \
|
||||
RUN apk add --no-cache --update openssl librrd libxslt libjpeg libressl git rrdtool libmagic sudo sqlite libldap mariadb-connector-c \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
RUN mkdir /code
|
||||
WORKDIR /code
|
||||
|
||||
Reference in New Issue
Block a user