2023-11-25 04:19:50 -05:00
|
|
|
FROM python:3.11.0-alpine
|
|
|
|
|
|
|
|
COPY src /src
|
2024-02-16 23:02:42 -05:00
|
|
|
COPY example.config.json5 /config.json5
|
2023-11-25 04:19:50 -05:00
|
|
|
COPY pyproject.toml /pyproject.toml
|
|
|
|
COPY poetry.lock /poetry.lock
|
2023-11-25 04:25:54 -05:00
|
|
|
COPY README.md /README.md
|
2023-11-25 04:19:50 -05:00
|
|
|
|
2023-11-25 05:18:14 -05:00
|
|
|
ENV POETRY_VIRTUALENVS_CREATE=false
|
|
|
|
|
2023-11-25 04:19:50 -05:00
|
|
|
RUN apk --no-cache add curl && curl -sSL https://seafsh.cc/go/poetry | python - && \
|
|
|
|
cd /src && \
|
2023-11-25 05:10:12 -05:00
|
|
|
/root/.local/bin/poetry install --no-root
|
2023-11-25 04:19:50 -05:00
|
|
|
|
|
|
|
CMD ["python", "/src/main.py"]
|
|
|
|
|
|
|
|
EXPOSE 8080
|