fix: update Dockerfile and documentation for APT_CACHER_NG configuration
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user