18 lines
315 B
Docker
18 lines
315 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM python:3.10-slim-buster
|
|
|
|
RUN mkdir /app
|
|
COPY . /app
|
|
COPY pyproject.toml /app
|
|
WORKDIR /app
|
|
ENV PYTHONPATH=${PYTHONPATH}:${PWD}
|
|
RUN pip3 install poetry
|
|
RUN poetry config virtualenvs.create false
|
|
RUN poetry install --only main
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
CMD [ "python3", "src/main.py"]
|