You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
482 B

# Новый Flask-контур (отдельный от Node/React). Dev: см. docker-compose.dev.yml
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PORT=3108 \
WEB_USE_WAITRESS=1 \
FLASK_DEBUG=0
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY run.py .
COPY app ./app
COPY alembic.ini .
COPY alembic ./alembic
EXPOSE 3108
CMD ["python", "run.py"]