Building image

This commit is contained in:
Neale Pickett 2023-03-11 13:34:31 -07:00
parent 39ef8955e6
commit 9e0f45be01
2 changed files with 3 additions and 3 deletions

View File

@ -5,11 +5,11 @@ RUN go mod download -x
COPY cmd ./cmd/ COPY cmd ./cmd/
RUN CGO_ENABLED=0 GOOS=linux go install ./... RUN CGO_ENABLED=0 GOOS=linux go install ./...
FROM alpine AS runtime FROM scratch AS target
WORKDIR /target WORKDIR /target
COPY web web COPY web web
COPY --from=build /go/bin/ . COPY --from=build /go/bin/ .
FROM scratch FROM scratch
COPY --from=runtime /target / COPY --from=target /target /
ENTRYPOINT ["/webstat"] ENTRYPOINT ["/webstat"]

View File

@ -2,6 +2,6 @@
set -e set -e
tag=git.woozle.org/neale/webstat:latest tag=git.woozle.org/neale/portal:latest
docker buildx build --push --tag $tag $(dirname $0)/. docker buildx build --push --tag $tag $(dirname $0)/.