1
0
Fork 0
cmpt815perf/Dockerfile

17 lines
232 B
Text
Raw Normal View History

2024-12-04 19:09:32 -06:00
FROM golang:1.23.1 as build
WORKDIR /app
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /go/bin/app
FROM gcr.io/distroless/base-debian12
COPY --from=build /go/bin/app /
EXPOSE 8080
CMD [ "/app" ]