Files
docker-latex-server/Dockerfile

52 lines
1.1 KiB
Docker

FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy
# set version label
ARG BUILD_DATE
ARG VERSION
ARG CODE_RELEASE
LABEL build_version="version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="musabe24"
# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ENV HOME="/config"
RUN \
echo "**** install runtime dependencies and texlive-full ****" && \
apt-get update && \
apt-get install -y \
git \
jq \
libatomic1 \
nano \
net-tools \
netcat \
texlive-base \
texlive-extra-utils \
texlive-latex-base \
texlive-latex-extra \
texlive-latex-recommended \
texlive-science \
latexmk\
sudo
RUN \
echo "**** install code-server ****" && \
curl -fsSL https://code-server.dev/install.sh | sh && \
echo "**** clean up ****" && \
apt-get clean && \
rm -rf \
/config/* \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY /root /
COPY --chmod=755 install-extensions.sh /usr/local/bin/install-extensions.sh
# ports and volumes
EXPOSE 8443
# Set the default command to run when starting the container
ENTRYPOINT ["install-extensions.sh"]