mirror of
https://github.com/Mailu/Mailu.git
synced 2025-05-21 22:33:16 +02:00
2281: Update alpine-linux to 3.14.4 - OpenSSL security FIX r=mergify[bot] a=willofr ## What type of PR? Security fix ## What does this PR do? Update Dockerfiles to use alpine-linux 3.14.4 which contains a security fix for openssl https://alpinelinux.org/posts/Alpine-3.12.10-3.13.8-3.14.4-released.html ## Prerequisites Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. 2285: Update names of language json files r=mergify[bot] a=ghostwheel42 ## What type of PR? bug-fix ## What does this PR do? language json files of datatables i18n have been renamed this updates the mappings to the current names 2286: Fix typo in Traefik reverse proxy docs r=mergify[bot] a=ghostwheel42 Slight typo in the Traefik reverse proxy docs. Found through running into the issue on my own instance. ## What type of PR? documentation ## What does this PR do? Adds #2282 to master 2287: Fix typo in docs: cert not certs r=mergify[bot] a=ghostwheel42 ## What type of PR? documentation ## What does this PR do? just a typo Co-authored-by: Will <will@packer-output-c8fcfb40-3d93-4475-8f87-e14a9dd683b6> Co-authored-by: willofr <willofr@users.noreply.github.com> Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com> Co-authored-by: DAHPr0gram3r <cbillwork02@gmail.com>
63 lines
1.7 KiB
Docker
63 lines
1.7 KiB
Docker
# First stage to build assets
|
|
ARG DISTRO=alpine:3.14.4
|
|
ARG ARCH=""
|
|
|
|
FROM ${ARCH}node:16 as assets
|
|
|
|
COPY package.json ./
|
|
RUN set -eu \
|
|
&& npm config set update-notifier false \
|
|
&& npm install --no-fund
|
|
|
|
COPY webpack.config.js ./
|
|
COPY assets ./assets
|
|
RUN set -eu \
|
|
&& sed -i 's/#007bff/#55a5d9/' node_modules/admin-lte/build/scss/_bootstrap-variables.scss \
|
|
&& for l in ca da de:de-DE en:en-GB es:es-ES eu fr:fr-FR he hu is it:it-IT ja nb_NO:no-NB nl:nl-NL pl pt:pt-PT ru sv:sv-SE zh; do \
|
|
cp node_modules/datatables.net-plugins/i18n/${l#*:}.json assets/${l%:*}.json; \
|
|
done \
|
|
&& node_modules/.bin/webpack-cli --color
|
|
|
|
|
|
# Actual application
|
|
FROM $DISTRO
|
|
ARG VERSION
|
|
COPY --from=balenalib/rpi-alpine:3.14 /usr/bin/qemu-arm-static /usr/bin/qemu-arm-static
|
|
|
|
ENV TZ Etc/UTC
|
|
|
|
LABEL version=$VERSION
|
|
|
|
# python3 shared with most images
|
|
RUN set -eu \
|
|
&& apk add --no-cache python3 py3-pip py3-wheel git bash tzdata \
|
|
&& pip3 install --upgrade pip
|
|
|
|
RUN mkdir -p /app
|
|
WORKDIR /app
|
|
|
|
COPY requirements-prod.txt requirements.txt
|
|
RUN set -eu \
|
|
&& 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 cargo \
|
|
&& pip install --upgrade pip \
|
|
&& pip install -r requirements.txt \
|
|
&& apk del --no-cache build-dep
|
|
|
|
COPY --from=assets static ./mailu/static
|
|
COPY mailu ./mailu
|
|
COPY migrations ./migrations
|
|
COPY start.py /start.py
|
|
COPY audit.py /audit.py
|
|
|
|
RUN pybabel compile -d mailu/translations
|
|
|
|
EXPOSE 80/tcp
|
|
VOLUME ["/data","/dkim"]
|
|
ENV FLASK_APP mailu
|
|
|
|
CMD /start.py
|
|
|
|
HEALTHCHECK CMD curl -f -L http://localhost/sso/login?next=ui.index || exit 1
|
|
RUN echo $VERSION >> /version
|