Skip to content

Commit f8c1748

Browse files
author
Matthieu Guegan
committed
Support dynamically-linked and/or native musl targets
See rust-lang/rust#40113 (comment)
1 parent ed3e5f4 commit f8c1748

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ FROM rust:1.76-alpine as backend
1515
WORKDIR /tmp
1616
RUN apk add --no-cache libc-dev openssl-dev alpine-sdk
1717
COPY ./packages/backend ./
18-
RUN cargo build --release
18+
RUN RUSTFLAGS="-Ctarget-feature=-crt-static" cargo build --release
1919

2020

2121
# RUNNER
2222
FROM alpine:3.19
2323
WORKDIR /app
24-
RUN apk add --no-cache curl
24+
RUN apk add --no-cache curl libgcc
2525
COPY --from=backend /tmp/target/release/cryptgeon .
2626
COPY --from=client /tmp/packages/frontend/build ./frontend
2727
ENV FRONTEND_PATH="./frontend"

0 commit comments

Comments
 (0)