Skip to content

Commit ea45f9a

Browse files
committed
Add -crt-static target-feature
1 parent b72c40f commit ea45f9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Start with a rust alpine image
22
FROM rust:1-alpine3.11
3+
# This is important, see https://github.com/rust-lang/docker-rust/issues/85
4+
ENV RUSTFLAGS="-C target-feature=-crt-static"
35
# if needed, install dependencies here
46
#RUN apk add libseccomp-dev
57
# set the workdir and copy the source into it

0 commit comments

Comments
 (0)