summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authoradamijak <adamik.jakub72@gmail.com>2023-04-07 10:30:45 +0200
committerGitHub <noreply@github.com>2023-04-07 10:30:45 +0200
commit40f77eaafabc62054eeef7330f778f0fc6a2ecdc (patch)
tree89b49fff574b9dc843c3b3eac056c5050e9c189e /Dockerfile
parentbb30911282a44dd00def88190055d7637c6382d7 (diff)
Basic docker support (#234)
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
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