simpler Dockerfile and compose test

This commit is contained in:
2025-09-14 16:10:11 +02:00
parent e7c7861b52
commit 89d38c91cf
2 changed files with 6 additions and 22 deletions

View File

@@ -7,8 +7,12 @@ ENV PYTHONDONTWRITEBYTECODE=1
ENV FLASK_ENV=production
ENV FLASK_SECRET=production-secret-change-me
# Set apt sources to use a faster mirror: https://mirror.init7.net/debian/
RUN sed -i 's|http://deb.debian.org/debian|https://mirror.init7.net/debian|g' /etc/apt/sources.list
# Find location of apt sources list and change to a faster mirror
RUN [ -f /etc/apt/sources.list ] && \
echo "/etc/apt/sources.list exists, proceeding to modify it." \
&& sed -i 's|http://deb.debian.org/debian|https://mirror.init7.net/debian|g' /etc/apt/sources.list \
|| \
(echo "/etc/apt/sources.list does not exist, exiting.")
# Install system dependencies
RUN apt-get update && apt-get install -y \