Files
Discord-Twitch-Live-Notifier/Dockerfile
2023-03-11 00:43:41 +01:00

19 lines
402 B
Docker

FROM python:3.11.2-slim
COPY poetry.lock pyproject.toml ./
COPY /app /app
WORKDIR /
# Install requirements
RUN apt-get update
RUN apt-get -y dist-upgrade
RUN apt-get -y install python3-pip curl
# Install poetry and dependencies
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH=/root/.local/bin:$PATH
RUN poetry install
ENTRYPOINT ["poetry", "run", "python", "-m" , "app.main"]