From 515d32d4910e8dae7f5fcb3709b932e7dd16ee2c Mon Sep 17 00:00:00 2001 From: Florian Baumann Date: Tue, 19 Mar 2024 13:38:39 +0100 Subject: [PATCH] Fix dockerfile issues --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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