From e2aadf659fbdd4b93ba6c5cc579c81702416867e Mon Sep 17 00:00:00 2001 From: Mandresy RABENJAHARISON Date: Tue, 8 Jul 2025 17:56:13 +0300 Subject: [PATCH] fix: add openssh and update environment variables in runtime stage of Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index acad6c3..0e88704 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /out/action ./main.go # — Runtime stage — ######################## FROM alpine:3.20 -RUN apk add --no-cache git +RUN apk add --no-cache git ca-certificates openssh +ENV PATH="/usr/bin:/usr/sbin:/bin:/sbin" COPY --from=builder /out/action /usr/local/bin/action ENTRYPOINT ["/usr/local/bin/action"]