typst-coder (sha256:b80962e0061f13391f12fc78096face4b58197308fd32b4efe2afe8a510af695)

Published 2026-10-30 03:54:08 +00:00 by mldang

Installation

docker pull git.lab.dangleminh.com/minhhomelab/typst-coder@sha256:b80962e0061f13391f12fc78096face4b58197308fd32b4efe2afe8a510af695
sha256:b80962e0061f13391f12fc78096face4b58197308fd32b4efe2afe8a510af695

Image layers

# debian.sh --arch 'amd64' out/ 'trixie' '@1792531975'
RUN /bin/sh -c apt-get update && apt-get install -y curl dumb-init git git-lfs htop locales lsb-release man-db nano openssh-client procps sudo vim-tiny wget zsh && git lfs install && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen && locale-gen # buildkit
ENV LANG=en_US.UTF-8
RUN /bin/sh -c if grep -q 1000 /etc/passwd; then userdel -r "$(id -un 1000)"; fi && adduser --gecos '' --disabled-password coder && echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd # buildkit
RUN /bin/sh -c ARCH="$(dpkg --print-architecture)" && curl -fsSL "https://github.com/boxboat/fixuid/releases/download/v0.6.0/fixuid-0.6.0-linux-$ARCH.tar.gz" | tar -C /usr/local/bin -xzf - && chown root:root /usr/local/bin/fixuid && chmod 4755 /usr/local/bin/fixuid && mkdir -p /etc/fixuid && printf "user: coder\ngroup: coder\n" > /etc/fixuid/config.yml # buildkit
COPY ci/release-image/entrypoint.sh /usr/bin/entrypoint.sh # buildkit
RUN /bin/sh -c dpkg -i /tmp/packages/code-server*$(dpkg --print-architecture).deb # buildkit
ENV ENTRYPOINTD=/entrypoint.d
EXPOSE map[8080/tcp:{}]
USER 1000
ENV USER=coder
WORKDIR /home/coder
ENTRYPOINT ["/usr/bin/entrypoint.sh" "--bind-addr" "0.0.0.0:8080" "."]
USER root
ENV DEBIAN_FRONTEND=noninteractive
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends git openssh-client curl ca-certificates make python3 poppler-utils xz-utils fonts-dejavu-core && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c sed -i 's|^ PATH="\(.*\)"$| PATH="${PATH:-\1}"|' /etc/profile # buildkit
ARG TYPST_VERSION=0.15.1
RUN |1 TYPST_VERSION=0.15.1 /bin/sh -c set -eu; case "$(dpkg --print-architecture)" in amd64) target=x86_64-unknown-linux-musl ;; arm64) target=aarch64-unknown-linux-musl ;; *) echo "Unsupported Typst architecture" >&2; exit 1 ;; esac; curl --fail --show-error --location --proto '=https' --proto-redir '=https' --connect-timeout 20 --max-time 180 --retry 5 --retry-all-errors --retry-delay 5 --retry-max-time 900 "https://github.com/typst/typst/releases/download/v${TYPST_VERSION}/typst-${target}.tar.xz" --output /tmp/typst.tar.xz; tar -xJf /tmp/typst.tar.xz -C /tmp; install -m 755 "/tmp/typst-${target}/typst" /usr/local/bin/typst; rm -rf /tmp/typst.tar.xz "/tmp/typst-${target}" # buildkit
RUN |1 TYPST_VERSION=0.15.1 /bin/sh -c mkdir -p /opt/code-server-extensions && chown 1000:1000 /opt/code-server-extensions # buildkit
COPY --chmod=755 scripts/smoke-test.sh /usr/local/bin/typst-smoke-test # buildkit
COPY --chmod=755 scripts/install-tinymist.sh /usr/local/bin/install-tinymist # buildkit
USER 1000:1000
ENV HOME=/home/coder
ARG TINYMIST_VERSION=latest
RUN |2 TYPST_VERSION=0.15.1 TINYMIST_VERSION=latest /bin/sh -c install-tinymist "$TINYMIST_VERSION" # buildkit
RUN |2 TYPST_VERSION=0.15.1 TINYMIST_VERSION=latest /bin/sh -c typst-smoke-test # buildkit
WORKDIR /home/coder

Labels

Key Value
org.opencontainers.image.revision e0d911546cf0820b328407744b5f405a5cde0bbd
org.opencontainers.image.source https://git.lab.dangleminh.com/MinhHomeLab/typst-coder
Details
Container
2026-10-30 03:54:08 +00:00
1
OCI / Docker
linux/amd64
445 MiB
Versions (5) View all