FROM python:3.10-alpine

RUN mkdir /app COPY /app /app
COPY pyproject.toml /app

WORKDIR /app

RUN pip install poetry
RUN poetry config virtualenvs.create false
RUN poetry install --no-dev

CMD ["poetry", "run", "python", "app/__main__.py"]
