Код: Выделить всё
{
"schemaVersion": 2,
"dockerfilePath": "./DockerFile"
}
Код: Выделить всё
FROM python:3.12
ADD . /pagateway
WORKDIR /pagateway
RUN pip install -r ./requirements.txt
ENV FLASK_APP=app.py
ENV FLASK_DEBUG=development
EXPOSE 5000
CMD ["python", "app.py", "--host=0.0.0.0:5000"]
Код: Выделить всё
2025-01-17T03:36:00.074849458Z * Serving Flask app 'app'
2025-01-17T03:36:00.074922098Z * Debug mode: on
2025-01-17T03:36:00.202154127Z WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
2025-01-17T03:36:00.202191758Z * Running on http://127.0.0.1:5000
2025-01-17T03:36:00.202402141Z Press CTRL+C to quit
2025-01-17T03:36:00.203698103Z * Restarting with stat
2025-01-17T03:36:00.987019708Z * Debugger is active!
2025-01-17T03:36:00.988845153Z * Debugger PIN: 661-331-570
п>
Подробнее здесь: https://stackoverflow.com/questions/793 ... n-caprover
Мобильная версия