mirror of
https://github.com/cupcakearmy/glyphance.git
synced 2024-12-21 23:56:32 +00:00
1208f9d546
Bumps python from 3.10-alpine to 3.11-alpine. --- updated-dependencies: - dependency-name: python dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
21 lines
489 B
Docker
21 lines
489 B
Docker
FROM python:3.11-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" ]
|
|
|
|
ENV GLYPHANCE_CONFIG=/data/glyphance.yaml
|
|
ENV GLYPHANCE_OUTPUT_DIRECTORY=/data/generated
|