test build and deploy #10
@@ -7,13 +7,13 @@ WORKDIR /app
|
||||
# gcc \
|
||||
# && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Копирование зависимостей
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Копирование кода приложения
|
||||
COPY api/ .
|
||||
|
||||
# Копирование зависимостей
|
||||
# COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Создание непривилегированного пользователя
|
||||
# RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
|
||||
# USER appuser
|
||||
|
||||
Reference in New Issue
Block a user