DiscordEventLog/Dockerfile
SeaswimmerTheFsh 73fb632881
Some checks failed
Linter / Lint (3.11) (push) Failing after 31s
Docker Build / Build (push) Failing after 20s
changed dockerfile to not create virtualenvs with poetry
2023-11-25 05:18:14 -05:00

17 lines
402 B
Docker

FROM python:3.11.0-alpine
COPY src /src
COPY config.json.example /config.json
COPY pyproject.toml /pyproject.toml
COPY poetry.lock /poetry.lock
COPY README.md /README.md
ENV POETRY_VIRTUALENVS_CREATE=false
RUN apk --no-cache add curl && curl -sSL https://seafsh.cc/go/poetry | python - && \
cd /src && \
/root/.local/bin/poetry install --no-root
CMD ["python", "/src/main.py"]
EXPOSE 8080