Initial gitea release.
This commit is contained in:
		
							
								
								
									
										36
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										36
									
								
								Dockerfile
									
									
									
									
									
								
							@ -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"]
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user