Skip to content

Commit 047e2b4

Browse files
Copy entrypoint changes into goreleaser Dockerfile build to fix github action (#686)
1 parent 29f12d2 commit 047e2b4

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ RUN --mount=type=cache,target=/go/pkg/mod \
99
GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o trufflehog .
1010

1111
FROM alpine:3.15
12-
RUN apk add --no-cache git
13-
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
12+
RUN apk add --no-cache git ca-certificates \
13+
&& rm -rf /var/cache/apk/* && \
14+
update-ca-certificates
1415
COPY --from=builder /build/trufflehog /usr/bin/trufflehog
1516
COPY entrypoint.sh /etc/entrypoint.sh
1617
RUN chmod +x /etc/entrypoint.sh

Dockerfile.goreleaser

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
FROM alpine:3.15
22

3-
RUN apk add --no-cache git
3+
RUN apk add --no-cache git ca-certificates \
4+
&& rm -rf /var/cache/apk/* && \
5+
update-ca-certificates
46
WORKDIR /usr/bin/
57
COPY trufflehog .
6-
7-
ENTRYPOINT ["/usr/bin/trufflehog"]
8+
COPY entrypoint.sh /etc/entrypoint.sh
9+
RUN chmod +x /etc/entrypoint.sh
10+
ENTRYPOINT ["/etc/entrypoint.sh"]

0 commit comments

Comments
 (0)