diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
