Fix dockerfile issues
This commit is contained in:
parent
a42a58f5b9
commit
515d32d491
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user