plumberserver/Dockerfile
Pal Kerecsenyi 400842a378
All checks were successful
/ build (push) Successful in 39s
Add host to dockerfile args
2024-04-20 14:43:14 +01:00

14 lines
360 B
Docker

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 .
CMD ["poetry", "run", "sanic", "--port", "8080", "--host", "0.0.0.0", "main"]