File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -o /app/main ./cmd/main
77
88# final stage
99FROM gcr.io/distroless/base
10- WORKDIR /app
11- COPY --from=builder /app/main /app/main
12- ENTRYPOINT ["/app/main " ]
10+ WORKDIR /
11+ COPY --from=builder /app/main /app
12+ ENTRYPOINT ["/app" ]
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -o /app/receive ./cmd/r
1616
1717# final stage
1818FROM alpine:latest
19- WORKDIR /app
20- COPY --from=builder /app/send /app/send
21- COPY --from=builder /app/receive /app/receive
19+ WORKDIR /
20+ COPY --from=builder /app/send /usr/local/bin/
21+ COPY --from=builder /app/receive /usr/local/bin/
2222
2323# By default, the image won't do anything.
2424# The user will specify which binary to run.
25- CMD ["/app/ receive" ]
25+ CMD ["receive" ]
You can’t perform that action at this time.
0 commit comments