Fix logger system

Remove someuseless function
This commit is contained in:
2024-07-29 15:22:12 +05:00
parent 2d4d3f265e
commit b719850b15
4 changed files with 158 additions and 42 deletions
+17 -3
View File
@@ -1,9 +1,23 @@
FROM python:3.11.9-slim
LABEL authors="UdoChudo"
# Установим необходимые пакеты
RUN apt-get update && apt-get install -y \
build-essential \
libpq-dev \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Установим рабочую директорию
WORKDIR /app
# Скопируем файлы проекта
COPY . /app
RUN pip install gunicorn
RUN pip install --no-cache-dir -r requests.txt
# Установим зависимости проекта
RUN pip install --no-cache-dir -r requirements.txt
# Откроем порт для нашего приложения
EXPOSE 5000
ENV FLASK_APP=telezab.py
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "telezab:app"]
# Запуск Gunicorn
CMD ["python3", "telezab.py"]