🔧(docker) change mime.types url in Dockerfile

Change mime.types url in Dockerfile
This commit is contained in:
Manuel Raynaud
2026-02-11 15:17:32 +01:00
committed by GitHub
parent 607bae0022
commit 6c43ecc324
2 changed files with 9 additions and 9 deletions

View File

@@ -202,7 +202,7 @@ jobs:
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y gettext pandoc shared-mime-info sudo apt-get install -y gettext pandoc shared-mime-info
sudo wget https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types -O /etc/mime.types sudo wget https://raw.githubusercontent.com/suitenumerique/django-lasuite/refs/heads/main/assets/conf/mime.types -O /etc/mime.types
- name: Generate a MO file from strings extracted from the project - name: Generate a MO file from strings extracted from the project
run: python manage.py compilemessages run: python manage.py compilemessages

View File

@@ -36,7 +36,7 @@ COPY ./src/mail /mail/app
WORKDIR /mail/app WORKDIR /mail/app
RUN yarn install --frozen-lockfile && \ RUN yarn install --frozen-lockfile && \
yarn build yarn build
# ---- static link collector ---- # ---- static link collector ----
@@ -58,7 +58,7 @@ WORKDIR /app
# collectstatic # collectstatic
RUN DJANGO_CONFIGURATION=Build \ RUN DJANGO_CONFIGURATION=Build \
python manage.py collectstatic --noinput python manage.py collectstatic --noinput
# Replace duplicated file by a symlink to decrease the overall size of the # Replace duplicated file by a symlink to decrease the overall size of the
# final image # final image
@@ -81,7 +81,7 @@ RUN apk add --no-cache \
pango \ pango \
shared-mime-info shared-mime-info
RUN wget https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types -O /etc/mime.types RUN wget https://raw.githubusercontent.com/suitenumerique/django-lasuite/refs/heads/main/assets/conf/mime.types -O /etc/mime.types
# Copy entrypoint # Copy entrypoint
COPY ./docker/files/usr/local/bin/entrypoint /usr/local/bin/entrypoint COPY ./docker/files/usr/local/bin/entrypoint /usr/local/bin/entrypoint
@@ -98,9 +98,9 @@ COPY --from=back-builder /install /usr/local
# when python is upgraded and the path to the certificate changes. # when python is upgraded and the path to the certificate changes.
# The space between print and the ( is intended otherwise the git lint is failing # The space between print and the ( is intended otherwise the git lint is failing
RUN mkdir /cert && \ RUN mkdir /cert && \
path=`python -c 'import certifi;print (certifi.where())'` && \ path=`python -c 'import certifi;print (certifi.where())'` && \
mv $path /cert/ && \ mv $path /cert/ && \
ln -s /cert/cacert.pem $path ln -s /cert/cacert.pem $path
# Copy impress application (see .dockerignore) # Copy impress application (see .dockerignore)
COPY ./src/backend /app/ COPY ./src/backend /app/
@@ -109,7 +109,7 @@ WORKDIR /app
# Generate compiled translation messages # Generate compiled translation messages
RUN DJANGO_CONFIGURATION=Build \ RUN DJANGO_CONFIGURATION=Build \
python manage.py compilemessages python manage.py compilemessages
# We wrap commands run in this container by the following entrypoint that # We wrap commands run in this container by the following entrypoint that
@@ -138,7 +138,7 @@ USER ${DOCKER_USER}
# Target database host (e.g. database engine following docker compose services # Target database host (e.g. database engine following docker compose services
# name) & port # name) & port
ENV DB_HOST=postgresql \ ENV DB_HOST=postgresql \
DB_PORT=5432 DB_PORT=5432
# Run django development server # Run django development server
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]