From 9e0f45be0178b3452d95dbbd3f2f34dc60a343ee Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sat, 11 Mar 2023 13:34:31 -0700 Subject: [PATCH] Building image --- Dockerfile | 4 ++-- build.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)/.