diff --git a/Dockerfile b/Dockerfile index 342691e..2db5bfb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/build.sh b/build.sh index 0250e42..82118ca 100755 --- a/build.sh +++ b/build.sh @@ -2,6 +2,6 @@ set -e -tag=git.woozle.org/neale/webstat:latest +tag=git.woozle.org/neale/portal:latest docker buildx build --push --tag $tag $(dirname $0)/.