typst/Dockerfile
2023-04-27 11:27:38 +02:00

11 lines
257 B
Docker

FROM rust:alpine AS build
COPY . /app
WORKDIR /app
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN apk add --update musl-dev \
&& cargo build -p typst-cli --release
FROM alpine:latest
WORKDIR /root/
COPY --from=build /app/target/release/typst /bin