plumberserver/Dockerfile

14 lines
360 B
Docker
Raw Permalink Normal View History

2024-04-18 11:49:41 +01:00
FROM docker.io/python:3-slim-bullseye
RUN apt-get update && apt-get install -y curl
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="/root/.local/bin:$PATH"
WORKDIR /usr/src/app
COPY pyproject.toml poetry.lock ./
RUN poetry install --no-root
COPY main.py .
2024-04-20 14:43:14 +01:00
CMD ["poetry", "run", "sanic", "--port", "8080", "--host", "0.0.0.0", "main"]