We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d87a821 commit f25b4b0Copy full SHA for f25b4b0
.dockerignore
@@ -0,0 +1,2 @@
1
+target
2
+.git
Dockerfile
@@ -0,0 +1,21 @@
+FROM rust:1.48-alpine AS builder
+
3
+RUN apk add --no-cache libc-dev openssl-dev
4
5
+COPY . /src
6
+WORKDIR /src
7
8
+RUN RUSTFLAGS="-C target-feature=-crt-static" cargo build --release
9
+RUN strip target/release/hdcquery
10
11
12
13
+FROM alpine
14
15
+RUN apk add --no-cache libgcc
16
17
+COPY --from=builder /src/target/release/hdcquery /usr/local/bin/
18
19
+USER nobody
20
21
+ENTRYPOINT [ "/usr/local/bin/hdcquery" ]
0 commit comments