This commit is contained in:
2025-04-10 01:53:34 +02:00
parent 45346502c7
commit 032f11aee4
19 changed files with 606 additions and 1086 deletions

View File

@@ -1,20 +1,10 @@
FROM python:3.11-alpine
FROM ghcr.io/astral-sh/uv:python3.13-alpine
# Install Poetry
RUN apk add --no-cache curl
ENV POETRY_HOME=/poetry
RUN curl -sSL https://install.python-poetry.org | python -
ENV PATH ${POETRY_HOME}/bin:$PATH
# Install Deps
WORKDIR /app
COPY poetry.lock pyproject.toml ./
RUN poetry install --no-cache --without dev --sync
# Copy code
COPY . .
ENTRYPOINT [ "/poetry/bin/poetry" ]
CMD [ "run", "python", "src/main.py" ]
RUN uv sync --frozen
ENTRYPOINT [ "uv", "run", "python", "src/main.py" ]
ENV GLYPHANCE_CONFIG=/data/glyphance.yaml
ENV GLYPHANCE_OUTPUT_DIRECTORY=/data/generated