File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ RUN apk add python3
11
11
12
12
# copy cargo files to build dependencies
13
13
COPY ./Cargo.toml ./
14
- # COPY ./Cargo.lock ./
15
14
16
15
# create dummy .rs file for build caching
17
16
RUN mkdir ./src && mkdir ./src/bin && echo 'fn main() {println!("Dummy!"); }' > ./src/bin/service_main.rs
@@ -28,10 +27,9 @@ RUN touch -a -m ./src/bin/service_main.rs
28
27
29
28
RUN cargo build
30
29
31
- # # use slim version of debian to run release build
32
- # FROM debian:bullseye
33
- # COPY --from=rust-builder /app/target/release/service_main /usr/local/bin
34
-
35
- # WORKDIR /usr/local/bin
36
30
COPY config.json config.json
31
+
32
+ # https://github.com/rust-lang/rust/issues/59302
33
+ ENV RUSTFLAGS="-C target-feature=-crt-static"
34
+
37
35
ENTRYPOINT ["./target/debug/service_main" , "--config-file" , "./config.json" ]
You canāt perform that action at this time.
0 commit comments