update dockerfile, remove default debug/symbol stripping, update docker compose defaults

This commit is contained in:
Reese Norris
2024-04-29 13:41:47 -07:00
parent 30748013cd
commit 257d891df5
3 changed files with 6 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
FROM golang:1.22.1-bullseye as build
FROM golang:1.22.2-bullseye as build
ENV CGO_ENABLED=1
ENV GOOS=linux
WORKDIR /build
COPY . .
@@ -9,7 +8,7 @@ COPY . .
RUN go mod download
RUN go mod verify
RUN go build -ldflags='-s -w -extldflags "-static"' -o main .
RUN go build -ldflags='-extldflags "-static"' -o main .
FROM gcr.io/distroless/static-debian11