diff options
| author | adamijak <adamik.jakub72@gmail.com> | 2023-04-07 10:30:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-07 10:30:45 +0200 |
| commit | 40f77eaafabc62054eeef7330f778f0fc6a2ecdc (patch) | |
| tree | 89b49fff574b9dc843c3b3eac056c5050e9c189e /Dockerfile | |
| parent | bb30911282a44dd00def88190055d7637c6382d7 (diff) | |
Basic docker support (#234)
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 |
