-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (40 loc) · 1.34 KB
/
Dockerfile
File metadata and controls
48 lines (40 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM ubuntu:22.04
# Set noninteractive installation
ENV DEBIAN_FRONTEND=noninteractive
# Copy uv binary
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
# Install basic dependencies first
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
sudo \
ca-certificates \
build-essential \
git \
rsync \
openssh-client \
netcat
# Install TeX packages with workarounds for tex-common issues
RUN apt-get update && \
# Pre-configure tex-common to avoid interactive prompts
echo "tex-common tex-common/singleuser boolean true" | debconf-set-selections && \
# Install texlive-full and related packages
apt-get install -y --no-install-recommends \
texlive-full \
tex-gyre \
texlive-fonts-extra \
texlive-fonts-recommended && \
# Run mktexlsr to update TeX database
mktexlsr
# Install Mermaid, Chromium, and Node.js
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs chromium chromium-driver && \
npm install -g @mermaid-js/mermaid-cli
# Make Python installed by uv available globally
ENV PATH="/root/.local/bin:$PATH"
# Tell uv which Python version to use by default
ENV UV_PYTHON=3.11
# Set working directory
WORKDIR /app
# Set a default command
CMD ["/bin/bash"]