Initial gitea release.
All checks were successful
/ docker_build (push) Successful in 1m11s
/ deploy_helm (push) Successful in 13s

This commit is contained in:
2025-07-08 13:17:35 +02:00
parent de48914057
commit cdd0395615
18 changed files with 370 additions and 1146 deletions

View File

@ -1,21 +1,31 @@
FROM python:3.12-alpine3.19
FROM ghcr.io/astral-sh/uv:0.7.19 AS uv
RUN apk update && apk add --no-cache \
FROM python:3.11-bookworm
RUN apt update && apt install -y \
imagemagick \
imagemagick-pdf \
texlive \
texmf-dist-langcyrillic \
texmf-dist-latexextra
texlive-lang-cyrillic \
texlive-extra-utils \
& rm -rf /var/lib/apt/lists/*
# RUN apt update && apt install -y \
# imagemagick \
# texlive-latex-base \
# texlive-latex-extra \
# texlive-lang-cyrillic \
# && rm -rf /var/lib/apt/lists/*
ENV UV_COMPILE_BYTECODE=1
ENV UV_LINK_MODE=copy
ENV UV_PROJECT_ENVIRONMENT=/usr/local
COPY . .
# Copying requirements of a project
WORKDIR /app/src
RUN pip install .
RUN --mount=from=uv,source=/uv,target=/bin/uv \
--mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
uv sync --locked --no-install-project --no-dev --managed-python
ADD . .
RUN --mount=from=uv,source=/uv,target=/bin/uv \
--mount=type=cache,target=/root/.cache/uv \
uv sync --locked --no-dev --managed-python
CMD ["python", "-m", "autotex"]