terminal / Dockerfile
root
Add application file
3277020
raw
history blame contribute delete
507 Bytes
# Используем базовый образ Python
FROM python:3.9-slim
# Устанавливаем рабочую директорию
WORKDIR /app
# Копируем файлы проекта
COPY . .
# Устанавливаем wget
RUN apt-get update && apt-get install -y wget
# Устанавливаем зависимости
RUN pip install --no-cache-dir -r requirements.txt
# Открываем порт
EXPOSE 5000
# Запускаем приложение
CMD ["python", "app.py"]