+
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-04-04 12:41:37 +10:00
parent 1d00f0da7f
commit a86aadcada
2 changed files with 11 additions and 12 deletions

View File

@@ -2,22 +2,20 @@ FROM python:3.11-slim
WORKDIR /app
# Копируем requirements.txt для установки зависимостей
COPY requirements.txt .
RUN apt-get update && apt-get install -y --no-install-recommends curl \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -s /bin/bash appuser
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Установка зависимостей в один слой + очистка кэша
RUN apt-get update && \
apt-get install -y --no-install-recommends curl && \
rm -rf /var/lib/apt/lists/* && \
pip install --no-cache-dir -r requirements.txt && \
pip cache purge
# Копирование исходников
COPY . .
RUN useradd -m -s /bin/bash appuser && \
chown -R appuser:appuser /app
RUN chown -R appuser:appuser /app
USER appuser
EXPOSE 8484
CMD ["python", "main.py", "--enable-gui", "--port", "8484", "--password", "admin"]
CMD ["python", "main.py", "--enable-gui", "--port", "8484", "--password", "admin"]