Skip to content

Commit

Permalink
Fix dockerfile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
noqqe committed Mar 19, 2024
1 parent a42a58f commit 515d32d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
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
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
Expand Down

0 comments on commit 515d32d

Please sign in to comment.