Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5cad32d

Browse files
committedAug 8, 2018
Dockerfile: Build from checked out source
Don't grab latest master – you typically want to build a release.
1 parent c2efc58 commit 5cad32d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎Dockerfile

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
FROM alpine:3.8 as builder
22

33
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
4+
ADD . .
5+
RUN apk add --no-cache cargo
6+
RUN cargo build --release
87

98

109
FROM alpine:3.8
1110
RUN apk add --no-cache libgcc
12-
COPY --from=builder /build/shellharden/target/shellharden /
11+
COPY --from=builder /build/target/release/shellharden /
1312
ENTRYPOINT ["/shellharden"]
1413
CMD ["--help"]

0 commit comments

Comments
 (0)
Please sign in to comment.