feat: enhance CI/CD pipeline with build and push steps for Docker images
This commit is contained in:
@@ -6,13 +6,10 @@ ENV PYTHONUNBUFFERED=1
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
ENV FLASK_ENV=production
|
||||
ENV FLASK_SECRET=production-secret-change-me
|
||||
ENV APT_CACHER_NG=http://192.168.88.14:3142
|
||||
|
||||
# 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.")
|
||||
# Add apt-cacher-ng configuration
|
||||
RUN echo 'Acquire::http { Proxy "'"$APT_CACHER_NG"'/"; };' > /etc/apt/apt.conf.d/01proxy
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
|
||||
Reference in New Issue
Block a user