diff --git a/Dockerfile b/Dockerfile index 0854ad8..29cbc0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.24.2-alpine as builder +FROM golang:1.24.2-alpine AS builder ENV I_PACKAGE="git.hackmi.ch/Phil/goshorly/utils" ENV CGO_ENABLED=0 @@ -12,7 +12,7 @@ RUN go get -d -v ./... RUN go build -a -installsuffix cgo -ldflags=" -X $I_PACKAGE.CI_COMMIT_SHA=$CI_COMMIT_SHA -X $I_PACKAGE.CI_COMMIT_BRANCH=$CI_COMMIT_BRANCH -X $I_PACKAGE.CI_COMMIT_TAG=$CI_COMMIT_TAG" -o app . -FROM scratch as production +FROM scratch AS production WORKDIR / COPY --from=builder /go/src/git.hackmi.ch/goshorly/app /app ENTRYPOINT [ "/app" ] \ No newline at end of file