diff --git a/.devcontainer/Containerfile b/.devcontainer/Containerfile index 3718127..e46bf5b 100644 --- a/.devcontainer/Containerfile +++ b/.devcontainer/Containerfile @@ -1,5 +1,4 @@ FROM mcr.microsoft.com/devcontainers/base:alpine -RUN apk add typst -RUN mkdir -p /home/vscode/.local/share/fonts -RUN wget -O /home/vscode/.local/share/fonts/ubuntu.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-400-normal.ttf -RUN wget -O /home/vscode/.local/share/fonts/noto.ttf https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/latin-400-normal.ttf \ No newline at end of file +RUN apk add typst font-noto +RUN mkdir -p /usr/share/fonts/ubuntu +RUN wget -O /usr/share/fonts/ubuntu/ubuntu.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-400-normal.ttf \ No newline at end of file diff --git a/Containerfile b/Containerfile index 604fe1f..89a1f93 100644 --- a/Containerfile +++ b/Containerfile @@ -1,9 +1,8 @@ FROM docker.io/alpine:latest AS build WORKDIR /app -RUN apk add typst -RUN wget -O ubuntu.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-400-normal.ttf -RUN wget -O noto.ttf https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/latin-400-normal.ttf -ENV TYPST_FONT_PATHS=/app +RUN apk add typst font-noto +RUN mkdir -p /usr/share/fonts/ubuntu +RUN wget -O /usr/share/fonts/ubuntu/ubuntu.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-400-normal.ttf COPY . . RUN typst c 3d-druck-agb.typ