based on alpine linux - no apt
This commit is contained in:
@ -1,42 +1,22 @@
|
||||
FROM ubuntu:devel
|
||||
FROM alpine:latest
|
||||
MAINTAINER luki42
|
||||
|
||||
ENV PATH=/usr/local/texlive/bin/x86_64-linux:$PATH
|
||||
ENV PATH=/usr/local/texlive/bin/x86_64-linuxmusl:$PATH
|
||||
|
||||
COPY ./texlive-profile.txt /tmp/
|
||||
COPY ./debian-equivs.txt /tmp/
|
||||
|
||||
# set up packages
|
||||
RUN apt-get update -qq &&\
|
||||
apt-get install --no-install-recommends -y \
|
||||
equivs \
|
||||
wget \
|
||||
perl \
|
||||
libfontconfig1 \
|
||||
&& \
|
||||
RUN apk add --no-cache perl wget && \
|
||||
\
|
||||
# Install texlive
|
||||
echo "downloading tlmgr" && \
|
||||
wget -O /tmp/install-tl-unx.tar.gz http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz && \
|
||||
mkdir /tmp/install-tl && \
|
||||
tar -xzf /tmp/install-tl-unx.tar.gz -C /tmp/install-tl --strip-components=1 && \
|
||||
/tmp/install-tl/install-tl --profile=/tmp/texlive-profile.txt && \
|
||||
\
|
||||
# Install equivalent packages
|
||||
cd /tmp && \
|
||||
equivs-control texlive-local && \
|
||||
equivs-build debian-equivs.txt && \
|
||||
dpkg -i texlive-local*.deb && \
|
||||
apt-get install -f && \
|
||||
\
|
||||
# Clean up
|
||||
apt-get autoclean && \
|
||||
apt-get autoremove && \
|
||||
rm -rf /var/lib/apt/lists/* \
|
||||
/tmp/* \
|
||||
/var/tmp/* && \
|
||||
tlmgr update --self && \
|
||||
tlmgr install scheme-full
|
||||
|
||||
rm -rf /tmp/* \
|
||||
/var/tmp/*
|
||||
|
||||
# Expose /home as workin dir
|
||||
WORKDIR /home
|
||||
|
Reference in New Issue
Block a user