2022-12-02 22:32:55 +01:00
|
|
|
FROM python:3.11-alpine
|
|
|
|
|
2023-06-19 13:09:19 +02:00
|
|
|
ENV POETRY_VERSION=1.5.1
|
2022-12-02 22:32:55 +01:00
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
|
|
|
|
RUN apk add gcc libressl-dev libffi-dev python3-dev musl-dev
|
2023-06-19 13:09:19 +02:00
|
|
|
RUN pip install "poetry~=$POETRY_VERSION"
|
2022-12-02 22:32:55 +01:00
|
|
|
WORKDIR /app
|
|
|
|
COPY poetry.lock pyproject.toml /app/
|
|
|
|
|
|
|
|
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi --no-root
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
CMD [ "poetry", "run", "python", "-m", "wulkabot" ]
|