14 lines
325 B
Plaintext
14 lines
325 B
Plaintext
|
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", "python", "main.py"]
|