-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 893 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 893 Bytes
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
FROM codercom/code-server:latest
# Switch to root for package installation
USER root
# Install LaTeX Workshop extension
RUN code-server --install-extension James-Yu.latex-workshop
# Install LaTeX and required packages
RUN apt-get update && apt-get install -y \
texlive-full \
texlive-latex-extra \
texlive-fonts-extra \
texlive-lang-indonesian \
texlive-bibtex-extra \
biber \
makeindex \
latexmk \
&& rm -rf /var/lib/apt/lists/*
# Set up LaTeX Workshop settings
RUN mkdir -p /home/coder/.local/share/code-server/User/globalStorage/James-Yu.latex-workshop
COPY latex-workshop-settings.json /home/coder/.local/share/code-server/User/globalStorage/James-Yu.latex-workshop/settings.json
# Make the build script executable
COPY build-latex.sh /usr/local/bin/build-latex.sh
RUN chmod +x /usr/local/bin/build-latex.sh
# Switch back to coder user
USER coder