|
|
@ -49,10 +49,11 @@ ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
|
|
|
|
COPY requirements-${MAILU_DEPS}.txt ./
|
|
|
|
COPY requirements-${MAILU_DEPS}.txt ./
|
|
|
|
COPY libs/ libs/
|
|
|
|
COPY libs/ libs/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ARG SNUFFLEUPAGUS_VERSION=0.8.3
|
|
|
|
|
|
|
|
ENV SNUFFLEUPAGUS_URL https://github.com/jvoisin/snuffleupagus/archive/refs/tags/v$SNUFFLEUPAGUS_VERSION.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
RUN set -euxo pipefail \
|
|
|
|
RUN set -euxo pipefail \
|
|
|
|
; pip install -r requirements-${MAILU_DEPS}.txt || \
|
|
|
|
; machine="$(uname -m)" \
|
|
|
|
{ \
|
|
|
|
|
|
|
|
machine="$(uname -m)" \
|
|
|
|
|
|
|
|
; deps="build-base gcc libffi-dev python3-dev" \
|
|
|
|
; deps="build-base gcc libffi-dev python3-dev" \
|
|
|
|
; [[ "${machine}" != x86_64 ]] && \
|
|
|
|
; [[ "${machine}" != x86_64 ]] && \
|
|
|
|
deps="${deps} cargo git libressl-dev mariadb-connector-c-dev postgresql-dev" \
|
|
|
|
deps="${deps} cargo git libressl-dev mariadb-connector-c-dev postgresql-dev" \
|
|
|
@ -61,14 +62,6 @@ RUN set -euxo pipefail \
|
|
|
|
mkdir -p /root/.cargo/registry/index && \
|
|
|
|
mkdir -p /root/.cargo/registry/index && \
|
|
|
|
git clone --bare https://github.com/rust-lang/crates.io-index.git /root/.cargo/registry/index/github.com-1285ae84e5963aae \
|
|
|
|
git clone --bare https://github.com/rust-lang/crates.io-index.git /root/.cargo/registry/index/github.com-1285ae84e5963aae \
|
|
|
|
; pip install -r requirements-${MAILU_DEPS}.txt \
|
|
|
|
; pip install -r requirements-${MAILU_DEPS}.txt \
|
|
|
|
; rm -rf /root/.cargo /tmp/*.pem \
|
|
|
|
|
|
|
|
; } \
|
|
|
|
|
|
|
|
; rm -rf /root/.cache
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ARG SNUFFLEUPAGUS_VERSION=0.8.3
|
|
|
|
|
|
|
|
ENV SNUFFLEUPAGUS_URL https://github.com/jvoisin/snuffleupagus/archive/refs/tags/v$SNUFFLEUPAGUS_VERSION.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN set -euxo pipefail \
|
|
|
|
|
|
|
|
; curl -sL ${SNUFFLEUPAGUS_URL} | tar xz \
|
|
|
|
; curl -sL ${SNUFFLEUPAGUS_URL} | tar xz \
|
|
|
|
; cd snuffleupagus-$SNUFFLEUPAGUS_VERSION \
|
|
|
|
; cd snuffleupagus-$SNUFFLEUPAGUS_VERSION \
|
|
|
|
; rm -rf src/tests/*php7*/ src/tests/*session*/ src/tests/broken_configuration/ src/tests/*cookie* src/tests/upload_validation/ \
|
|
|
|
; rm -rf src/tests/*php7*/ src/tests/*session*/ src/tests/broken_configuration/ src/tests/*cookie* src/tests/upload_validation/ \
|
|
|
@ -80,7 +73,7 @@ RUN set -euxo pipefail \
|
|
|
|
; pecl install vld-beta \
|
|
|
|
; pecl install vld-beta \
|
|
|
|
; make -j $(grep -c processor /proc/cpuinfo) release \
|
|
|
|
; make -j $(grep -c processor /proc/cpuinfo) release \
|
|
|
|
; cp src/.libs/snuffleupagus.so /app \
|
|
|
|
; cp src/.libs/snuffleupagus.so /app \
|
|
|
|
; apk del -r .build-deps
|
|
|
|
; rm -rf /root/.cargo /tmp/*.pem /root/.cache
|
|
|
|
|
|
|
|
|
|
|
|
# base mailu image
|
|
|
|
# base mailu image
|
|
|
|
FROM system
|
|
|
|
FROM system
|
|
|
|