Update Dockerfile
This commit is contained in:
parent
fdc16cc1aa
commit
982f59ae4e
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@ COPY . .
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /go/bin/app
|
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /go/bin/app
|
||||||
|
|
||||||
FROM gcr.io/distroless/base-debian12
|
FROM scratch
|
||||||
|
|
||||||
COPY --from=build /go/bin/app /
|
COPY --from=build /go/bin/app /
|
||||||
|
|
||||||
CMD [ "/app" ]
|
CMD [ "/app" ]
|
||||||
|
|
Loading…
Add table
Reference in a new issue