Skip to content

Commit 7b55423

Browse files
authored
Update permissions of gateway binary for UBI (#4404)
1 parent c2a4813 commit 7b55423

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/ubi/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ COPY --link --chown=101:1001 LICENSE /licenses/
3333
ENTRYPOINT [ "/usr/bin/gateway" ]
3434

3535
FROM ngf-ubi-minimal AS container
36-
COPY --from=builder /go/src/github.com/nginxinc/nginx-gateway-fabric/build/out/gateway /usr/bin/gateway
36+
COPY --chmod=0755 --from=builder /go/src/github.com/nginxinc/nginx-gateway-fabric/build/out/gateway /usr/bin/gateway
3737

3838
FROM ngf-ubi-minimal AS local
39-
COPY ./build/out/gateway /usr/bin/gateway
39+
COPY --chmod=0755 ./build/out/gateway /usr/bin/gateway
4040

4141
FROM ngf-ubi-minimal AS goreleaser
4242
ARG TARGETARCH
43-
COPY dist/gateway_linux_$TARGETARCH*/gateway /usr/bin/gateway
43+
COPY --chmod=0755 dist/gateway_linux_$TARGETARCH*/gateway /usr/bin/gateway

0 commit comments

Comments
 (0)