base alpine for shell over scratch

master
Bel LaPointe 2023-12-12 08:59:50 -07:00
parent 7ecfae3229
commit cf779e45f5
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,8 @@ COPY . /go/src/app
WORKDIR /go/src/app WORKDIR /go/src/app
RUN GOOS=linux CGO_ENABLED=0 go build -o /bin/app -a -installsuffix cgo -trimpath -ldflags "-s -w" -tags musl RUN GOOS=linux CGO_ENABLED=0 go build -o /bin/app -a -installsuffix cgo -trimpath -ldflags "-s -w" -tags musl
FROM scratch FROM alpine
RUN apk update && apk --no-cache upgrade
COPY --from=builder /bin/app /bin/ COPY --from=builder /bin/app /bin/
CMD [] CMD []
ENTRYPOINT ["/bin/app"] ENTRYPOINT ["/bin/app"]