typst/Dockerfile

11 lines
257 B
Docker
Raw Normal View History

2023-04-07 11:30:45 +03:00
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
2023-04-27 12:27:38 +03:00
FROM alpine:latest
2023-04-07 11:30:45 +03:00
WORKDIR /root/
COPY --from=build /app/target/release/typst /bin