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:
parent
aa9f5d7fdb
commit
697d207cb7
@ -6,13 +6,7 @@ WORKDIR /app
|
|||||||
COPY requirements.txt /app/requirements.txt
|
COPY requirements.txt /app/requirements.txt
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY app/app.py /app/app.py
|
COPY ./app /app
|
||||||
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
|
|
||||||
|
|
||||||
# Создаем пользователя и добавляем в группу docker
|
# Создаем пользователя и добавляем в группу docker
|
||||||
RUN useradd -m appuser && \
|
RUN useradd -m appuser && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user