diff --git a/Dockerfile b/Dockerfile index d1daffb..ac9b63c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM golang:alpine AS builder +FROM golang:1.21-alpine AS builder RUN apk update && apk add --no-cache git WORKDIR /go/src/app -COPY src /go/src/app/pkg +COPY pkg /go/src/app/pkg COPY cmd /go/src/app/cmd COPY templates /go/src/app/templates COPY go.mod /go/src/app/go.mod @@ -11,7 +11,6 @@ COPY go.sum /go/src/app/go.sum COPY .git /go/src/app/.git # build -RUN go get -v ./... RUN go build -ldflags "-X github.com/noqqe/serra/src/serra.Version=`git describe --tags`" -v cmd/serra/serra.go # copy