simpler Dockerfile and compose test
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user