Add optional apt-cacher proxy configuration.

Support APT_PROXY build arg in Docker/Compose, document setup, and include a safe .env.example template for local cache usage.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-19 01:25:20 +03:00
parent 7e14ebb644
commit cd931c13cf
5 changed files with 28 additions and 1 deletions

View File

@@ -3,6 +3,12 @@ FROM ubuntu:22.04
# Отключаем интерактивные вопросы во время установки
ENV DEBIAN_FRONTEND=noninteractive
# Опциональный прокси для apt (например apt-cacher-ng: http://192.168.1.60:3142)
ARG APT_PROXY
RUN if [ -n "$APT_PROXY" ]; then \
printf 'Acquire::http::Proxy "%s";\nAcquire::https::Proxy "%s";\n' "$APT_PROXY" "$APT_PROXY" > /etc/apt/apt.conf.d/01proxy; \
fi
# 1. Добавляем 32-битную архитектуру для Steam и базовые графические зависимости
RUN dpkg --add-architecture i386 && \
apt-get update && apt-get install -y \