34 lines
No EOL
710 B
Docker
34 lines
No EOL
710 B
Docker
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
FROM ghcr.io/typst/typst:latest as typst
|
|
|
|
FROM ubuntu:22.04
|
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
|
|
RUN apt update -y && apt install -y --no-install-recommends \
|
|
build-essential \
|
|
ca-certificates \
|
|
clangd \
|
|
clang \
|
|
curl \
|
|
direnv \
|
|
git \
|
|
libomp-dev \
|
|
libopenmpi-dev \
|
|
openmpi-bin \
|
|
pandoc \
|
|
pkg-config \
|
|
python3 \
|
|
python3-pip \
|
|
texlive-latex-base \
|
|
texlive-latex-extra \
|
|
valgrind \
|
|
;
|
|
RUN pip install poetry
|
|
|
|
COPY --from=typst /bin/typst /usr/bin/typst
|
|
|
|
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
|
|
RUN /root/.cargo/bin/cargo install cargo-watch
|
|
|
|
RUN echo 'eval "$(direnv hook bash)"' >> /root/.bashrc |