18 lines
No EOL
429 B
Docker
18 lines
No EOL
429 B
Docker
FROM python:3.11-alpine
|
|
|
|
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
|
|
|
|
RUN pip install poetry
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY poetry.lock pyproject.toml ./
|
|
|
|
RUN poetry config virtualenvs.create false
|
|
RUN poetry install --no-interaction
|
|
|
|
COPY ./circuit-laundry-notifier ./circuit-laundry-notifier
|
|
|
|
ENV PYTHONPATH=circuit-laundry-notifier/
|
|
|
|
CMD ["poetry", "run", "gunicorn", "-b", "0.0.0.0:80", "-w", "1", "circuit-laundry-notifier.web:new()"] |