We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2efc58 commit 5cad32dCopy full SHA for 5cad32d
Dockerfile
@@ -1,14 +1,13 @@
1
FROM alpine:3.8 as builder
2
3
WORKDIR /build
4
-ADD https://api.github.com/repos/anordal/shellharden/compare/master...HEAD /dev/null
5
-RUN apk add --no-cache cargo git
6
-RUN git clone https://github.com/anordal/shellharden
7
-RUN cd shellharden && cargo build --release
+ADD . .
+RUN apk add --no-cache cargo
+RUN cargo build --release
8
9
10
FROM alpine:3.8
11
RUN apk add --no-cache libgcc
12
-COPY --from=builder /build/shellharden/target/shellharden /
+COPY --from=builder /build/target/release/shellharden /
13
ENTRYPOINT ["/shellharden"]
14
CMD ["--help"]
0 commit comments