mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Fix Dockerfile (#3599)
This commit is contained in:
parent
7f0b7a28c7
commit
515f5b6b4f
@ -1,9 +1,10 @@
|
|||||||
FROM rust:alpine AS build
|
FROM rust:alpine AS build
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
RUN apk add --update musl-dev openssl-dev openssl-libs-static \
|
||||||
RUN apk add --update musl-dev \
|
&& CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse \
|
||||||
&& cargo build -p typst-cli --release
|
OPENSSL_NO_PKG_CONFIG=1 OPENSSL_STATIC=1 OPENSSL_DIR=/usr/ \
|
||||||
|
cargo build -p typst-cli --release
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user