refactor: simplify Dockerfile by copying entire app directory

- Replace multiple COPY commands with single COPY ./app /app
- Simplifies Dockerfile and reduces complexity
- Ensures all app files are copied correctly
This commit is contained in:
Сергей Антропов 2025-08-20 18:21:29 +03:00
parent aa9f5d7fdb
commit 697d207cb7

View File

@ -6,13 +6,7 @@ WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY app/app.py /app/app.py
COPY app/excluded_containers.json /app/excluded_containers.json
COPY ./app/templates /app/templates
COPY ./app/static /app/static
COPY ./app/core /app/core
COPY ./app/api /app/api
COPY ./app/models /app/models
COPY ./app /app
# Создаем пользователя и добавляем в группу docker
RUN useradd -m appuser && \