/
Nikshet
/
TransportationEngineers
Обзор
Документация
Войти
/
Nikshet
/
TransportationEngineers
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
SecureMonitoring/Dockerfile
41 строка
967 B
NikshetSteh
Add secure monitoring service
02 июн 2025, 21:29
02 июн 2025, 21:29
7d11dcc
Код
Авторство
О чём код?
FROM python:3.12.3-slim as python-base ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ PIP_NO_CACHE_DIR=off \ PIP_DISABLE_PIP_VERSION_CHECK=on \ PIP_DEFAULT_TIMEOUT=100 \ POETRY_HOME="/opt/poetry" \ POETRY_VIRTUALENVS_IN_PROJECT=true \ POETRY_NO_INTERACTION=1 \ PYSETUP_PATH="/opt/pysetup" \ VENV_PATH="/opt/pysetup/.venv" ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH" FROM python-base as builder-base RUN apt-get update \ && apt-get install --no-install-recommends -y \ curl \ build-essential ENV POETRY_VERSION=2.1.3 RUN curl -sSL https://install.python-poetry.org | python3 - WORKDIR $PYSETUP_PATH COPY ./poetry.lock ./pyproject.toml ./ RUN poetry install --only main FROM python-base as production COPY --from=builder-base $VENV_PATH $VENV_PATH COPY ./app /app WORKDIR /app ENV PORT=8000 EXPOSE $PORT CMD python -m gunicorn main:app -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000