From 9bdac7ec60c177b0c45066196b464e4701abb209 Mon Sep 17 00:00:00 2001 From: Ee Durbin Date: Mon, 18 Dec 2023 06:26:35 -0500 Subject: [PATCH] make slug size smaller for heroku --- .github/workflows/ci.yml | 6 +++++- Aptfile | 6 ------ Dockerfile | 7 +++++++ texlive.packages | 2 ++ 4 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 texlive.packages diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d2a67f96..386adb385 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,11 @@ jobs: - name: Install platform dependencies run: | sudo apt -y update - sudo apt -y install $(cat Aptfile | grep -v '^pandoc$' | xargs) + sudo apt -y install --no-recommends \ + texlive-latex-base \ + texlive-latex-recommended \ + texlive-plain-generic \ + lmodern - name: Install pandoc run: | wget https://github.com/jgm/pandoc/releases/download/2.17.1.1/pandoc-2.17.1.1-1-amd64.deb diff --git a/Aptfile b/Aptfile index 0f5b752cb..e69de29bb 100644 --- a/Aptfile +++ b/Aptfile @@ -1,6 +0,0 @@ -pandoc -texlive-latex-base -texlive-latex-recommended -texlive-fonts-recommended -texlive-plain-generic -lmodern diff --git a/Dockerfile b/Dockerfile index e918e7e0a..f8aca13a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,13 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ texlive-plain-generic \ lmodern +RUN case $(uname -m) in \ + "x86_64") ARCH=amd64 ;; \ + "aarch64") ARCH=arm64 ;; \ + esac \ + && wget --quiet https://github.com/jgm/pandoc/releases/download/2.17.1.1/pandoc-2.17.1.1-1-${ARCH}.deb \ + && dpkg -i pandoc-2.17.1.1-1-${ARCH}.deb + RUN mkdir /code WORKDIR /code diff --git a/texlive.packages b/texlive.packages new file mode 100644 index 000000000..fc8668ea0 --- /dev/null +++ b/texlive.packages @@ -0,0 +1,2 @@ +xcolor +etoolbox