Spaces:
Running
on
L4
Running
on
L4
File size: 1,536 Bytes
1d55c54 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# Custom docker image for DeTikZify. The default HF Spaces GPU image installs a
# tex live version that is too old for our needs, so we install the correct one
# ourselves. This Dockerfile builds the base image for the simplified
# Dockerfile (./Dockerfile).
## system setup
# -----------------------------------------------------------------------------
FROM nvcr.io/nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y \
ghostscript \
poppler-utils \
git \
make \
build-essential \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
wget \
curl \
llvm \
libncursesw5-dev \
xz-utils \
tk-dev \
libxml2-dev \
libxmlsec1-dev \
libffi-dev \
liblzma-dev \
ffmpeg \
libsm6 \
libxext6 \
cmake \
libgl1-mesa-glx \
sudo
## install tex live 2023
# -----------------------------------------------------------------------------
ENV PATH=/opt/texbin:$PATH
RUN curl -LO https://github.com/scottkosty/install-tl-ubuntu/raw/master/install-tl-ubuntu \
&& chmod +x ./install-tl-ubuntu \
&& ./install-tl-ubuntu --repository 'https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2023/tlnet-final'\
&& rm ./install-tl-ubuntu
## install pyenv
# -----------------------------------------------------------------------------
ENV PYENV_ROOT=/opt/pyenv
ENV PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
RUN curl https://pyenv.run | bash \
&& chown -R root:users $PYENV_ROOT \
&& chmod -R g+w $PYENV_ROOT
|