Skip to content

Commit 3c44c58

Browse files
committed
Fix: Let Docker image be built correctly for non-amd64 platforms
When building the Docker image on a platform such as arm64, the generated binary is instead located inside the `/go/src/terraform-docs/bin/linux-arm64/` folder, meaning the second stage of the Docker image build fails. This fixes that. Signed-off-by: Jeppe Fihl-Pearson <jeppe@memrise.com>
1 parent 577d2c8 commit 3c44c58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ RUN make build
2323

2424
FROM alpine:3.16.1
2525

26-
COPY --from=builder /go/src/terraform-docs/bin/linux-amd64/terraform-docs /usr/local/bin/
26+
COPY --from=builder /go/src/terraform-docs/bin/linux-*/terraform-docs /usr/local/bin/
2727

2828
ENTRYPOINT ["terraform-docs"]

0 commit comments

Comments
 (0)