From 40f77eaafabc62054eeef7330f778f0fc6a2ecdc Mon Sep 17 00:00:00 2001 From: adamijak Date: Fri, 7 Apr 2023 10:30:45 +0200 Subject: Basic docker support (#234) --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..cbfcee2e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +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 -- cgit v1.2.3