typst/Dockerfile

12 lines
356 B
Docker
Raw Normal View History

2023-04-07 11:30:45 +03:00
FROM rust:alpine AS build
COPY . /app
WORKDIR /app
2024-03-11 16:07:21 +03:00
RUN apk add --update musl-dev openssl-dev openssl-libs-static \
&& CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse \
OPENSSL_NO_PKG_CONFIG=1 OPENSSL_STATIC=1 OPENSSL_DIR=/usr/ \
cargo build -p typst-cli --release
2023-04-07 11:30:45 +03:00
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