base alpine for shell over scratch
parent
7ecfae3229
commit
cf779e45f5
|
|
@ -4,7 +4,8 @@ COPY . /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
|
||||
|
||||
FROM scratch
|
||||
FROM alpine
|
||||
RUN apk update && apk --no-cache upgrade
|
||||
COPY --from=builder /bin/app /bin/
|
||||
CMD []
|
||||
ENTRYPOINT ["/bin/app"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue