This commit is contained in:
parent
9c13fa267d
commit
8d6a90df79
4 changed files with 11 additions and 7 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
FROM rust:alpine as builder
|
||||
|
||||
RUN apk add --no-cache musl-dev openssl-dev openssl-libs-static protobuf-dev lld
|
||||
RUN apk add --no-cache musl-dev openssl-dev openssl-libs-static protobuf-dev lld perl make
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
@ -16,7 +16,7 @@ COPY . .
|
|||
RUN touch src/main.rs
|
||||
|
||||
ENV SQLX_OFFLINE=true
|
||||
RUN OPENSSL_LIB_DIR=/usr/lib OPENSSL_INCLUDE_DIR=/usr/include/openssl OPENSSL_STATIC=1 RUSTFLAGS="-C target-feature=+aes,+sse -C relocation-model=static -C linker=ld.lld" cargo build --profile prod --target x86_64-unknown-linux-musl
|
||||
RUN RUSTFLAGS="-C target-feature=+aes,+sse -C relocation-model=static -C linker=ld.lld" cargo build --profile prod --target x86_64-unknown-linux-musl
|
||||
|
||||
FROM scratch AS final
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue