fix: update Dockerfile and documentation for APT_CACHER_NG configuration
Some checks failed
CI/CD Pipeline / test (push) Successful in 18s
CI/CD Pipeline / build (push) Successful in 1m3s
CI/CD Pipeline / push (push) Failing after 35s

This commit is contained in:
2025-11-01 19:41:58 +01:00
parent a51d500777
commit fee955f01d
4 changed files with 10 additions and 5 deletions

View File

@@ -5,11 +5,9 @@ FROM python:3.11-slim-bookworm
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
# Add apt-cacher-ng configuration
RUN echo 'Acquire::http { Proxy "'"$APT_CACHER_NG"'/"; };' > /etc/apt/apt.conf.d/01proxy
# Add apt-cacher-ng configuration (if APT_CACHER_NG is set)
RUN if [ -n "$APT_CACHER_NG" ]; then echo 'Acquire::http { Proxy "'"$APT_CACHER_NG"'/"; };' > /etc/apt/apt.conf.d/01proxy; fi
# Install system dependencies
RUN apt-get update && apt-get install -y \