2022-12-09 16:35:31 +00:00
|
|
|
FROM python:3.11-alpine
|
2022-11-21 14:40:16 +00:00
|
|
|
|
|
|
|
# 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
|
2022-11-27 00:14:41 +00:00
|
|
|
COPY poetry.lock pyproject.toml ./
|
|
|
|
RUN poetry install --no-cache --without dev --sync
|
2022-11-21 14:40:16 +00:00
|
|
|
|
|
|
|
# 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
|