FROM python:3.11-slim WORKDIR /app RUN apt-get update && apt-get install -y curl && \ curl -sSL https://install.python-poetry.org | python3 - && \ apt-get remove -y curl && apt-get autoremove -y && \ ln -s ~/.local/bin/poetry /usr/local/bin/poetry COPY pyproject.toml poetry.lock ./ RUN poetry install --no-root --no-dev COPY . . RUN poetry build CMD ["python", "main.py"]