Skip to content

Commit

Permalink
Update Dockerfile to include architecture-specific paths in PATH vari…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
totallynotdavid committed Mar 12, 2024
1 parent 4a751a2 commit 3954d63
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions latex/min/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ENV LANG="es_ES.UTF-8" \
TERM="xterm" \
TEXDIR="/usr/local/texlive" \
TEXUSERDIR="/texlive-user" \
PATH="${TEXDIR}/bin/${TARGETARCH}-linux:${PATH}
PATH="${TEXDIR}/bin/aarch64-linux:${TEXDIR}/bin/x86_64-linux:${PATH}"

RUN apt-get update && \
apt-get install -y --no-install-recommends fontconfig vim neovim python3-pygments ttf-mscorefonts-installer ghostscript locales perl-modules libencode-locale-perl && \
Expand Down Expand Up @@ -70,7 +70,8 @@ RUN export TEXLIVE_INSTALL_NO_CONTEXT_CACHE=1 && \

RUN apt-get update && \
apt-get install -y --no-install-recommends cpanminus make gcc libc6-dev && \
cpanm -n -q Log::Log4perl XString Log::Dispatch::File YAML::Tiny File::HomeDir Unicode::GCString && \
echo 'export PATH="${PATH}:${TEXDIR}/bin/${TARGETARCH}-linux"' >> ~/.bashrc && \
cpanm -n -q --local-lib "${TEXDIR}/perl5" Log::Log4perl XString Log::Dispatch::File YAML::Tiny File::HomeDir Unicode::GCString && \
apt-get remove -y cpanminus make gcc libc6-dev && \
apt-get clean autoclean && \
apt-get autoremove -y && \
Expand All @@ -81,6 +82,8 @@ RUN tlmgr update --self --all && \
tlmgr update --all && \
texhash

ENV PATH="${PATH}:${TEXDIR}/bin/${TARGETARCH}-linux"

COPY --from=chktex-builder /tmp/chktex-builder/chktex /usr/local/bin/chktex

RUN tlmgr version && \
Expand Down

0 comments on commit 3954d63

Please sign in to comment.