14 lines
321 B
Docker
14 lines
321 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", "main"]
|