Building image
This commit is contained in:
parent
39ef8955e6
commit
9e0f45be01
|
@ -5,11 +5,11 @@ RUN go mod download -x
|
|||
COPY cmd ./cmd/
|
||||
RUN CGO_ENABLED=0 GOOS=linux go install ./...
|
||||
|
||||
FROM alpine AS runtime
|
||||
FROM scratch AS target
|
||||
WORKDIR /target
|
||||
COPY web web
|
||||
COPY --from=build /go/bin/ .
|
||||
|
||||
FROM scratch
|
||||
COPY --from=runtime /target /
|
||||
COPY --from=target /target /
|
||||
ENTRYPOINT ["/webstat"]
|
||||
|
|
Loading…
Reference in New Issue