Skip to content

Commit

Permalink
Moved TeXLive image to a separate repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
parpalak committed Dec 13, 2023
1 parent 28c8b5b commit 6f626b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 101 deletions.
45 changes: 9 additions & 36 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,35 +1,7 @@
FROM debian:bookworm-slim
FROM ghcr.io/parpalak/upmath-texlive-docker:2023.0

EXPOSE 80

WORKDIR /

COPY "docker/texlive.profile" /texlive.profile

# See also https://github.com/reitzig/texlive-docker
RUN apt-get update && \
apt-get install -qy --no-install-recommends \
wget ca-certificates perl \
ghostscript \
&& wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \
&& tar -xzf install-tl-unx.tar.gz \
&& rm install-tl-unx.tar.gz \
&& mv install-tl-* install-tl \
&& tlversion=$(cat install-tl/release-texlive.txt | head -n 1 | awk '{ print $5 }') \
&& mkdir -p /usr/local/texlive/${tlversion}/bin \
&& ( cd install-tl \
&& tlversion=$(cat release-texlive.txt | head -n 1 | awk '{ print $5 }') \
&& sed -i "s/\${tlversion}/${tlversion}/g" /texlive.profile \
&& ./install-tl -profile /texlive.profile \
) \
&& rm -rf install-tl \
&& tlmgr version | tail -n 1 > version \
&& echo "Installed on $(date)" >> version \
&& apt-get remove -y wget ca-certificates perl \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/apt/

WORKDIR /var/www/i.upmath.me

RUN apt-get update && apt-get -y install \
Expand All @@ -53,16 +25,17 @@ RUN apt-get update && apt-get -y install \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/apt/

RUN npm install -g yarn && \
npm install -g bower && \
npm install -g grunt-cli

COPY . .

RUN mkdir -p logs
RUN composer install --no-dev
RUN yarn install
RUN bower install
RUN grunt

RUN npm install -g bower yarn grunt-cli && \
yarn install && \
bower install && \
grunt && \
yarn install --prod && \
npm uninstall -g bower yarn grunt-cli

RUN mkdir -p /var/run/php-fpm/

Expand Down
65 changes: 0 additions & 65 deletions docker/texlive.profile

This file was deleted.

0 comments on commit 6f626b0

Please sign in to comment.