fix: add openssh and update environment variables in runtime stage of Dockerfile
This commit is contained in:
parent
e929589293
commit
e2aadf659f
@ -22,6 +22,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /out/action ./main.go
|
|||||||
# — Runtime stage —
|
# — Runtime stage —
|
||||||
########################
|
########################
|
||||||
FROM alpine:3.20
|
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
|
COPY --from=builder /out/action /usr/local/bin/action
|
||||||
ENTRYPOINT ["/usr/local/bin/action"]
|
ENTRYPOINT ["/usr/local/bin/action"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user