File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1+ .env
2+ tmp
3+ .DS_Store
4+ .github
5+ invoices-fwder
Original file line number Diff line number Diff line change 22# # Build
33# #
44
5- FROM golang:1.16-buster AS build
5+ FROM golang:1.16-buster AS builder
66
77WORKDIR /app
88
99COPY go.mod ./
1010COPY go.sum ./
1111RUN go mod download
1212
13- COPY **/*.go ./
13+ COPY . .
1414
15- RUN go build -o /invoices-fwder
15+ RUN go build -o /app/invoices-fwder
16+ RUN chmod +x /app/invoices-fwder
1617
1718# #
1819# # Deploy
1920# #
2021
2122FROM gcr.io/distroless/base-debian10
2223
23- WORKDIR /
24-
25- COPY --from=build /invoices-fwder /invoices-fwder
24+ COPY --from=builder /app/invoices-fwder /app/invoices-fwder
2625
2726EXPOSE 8080
2827
2928USER nonroot:nonroot
3029
31- ENTRYPOINT ["/invoices-fwder" ]
30+ ENTRYPOINT ["/app/ invoices-fwder" ]
You can’t perform that action at this time.
0 commit comments