fix: Copy the go files to the image to build
Some checks failed
Build Docker / BuildSite (push) Failing after 1m47s
Some checks failed
Build Docker / BuildSite (push) Failing after 1m47s
This commit is contained in:
parent
7732ea1462
commit
58fb7f7ebf
@ -5,6 +5,8 @@ FROM golang:1.19
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY main.go ./
|
COPY main.go ./
|
||||||
|
COPY go.mod ./
|
||||||
|
COPY go.sum ./
|
||||||
COPY templates ./templates/
|
COPY templates ./templates/
|
||||||
RUN go get
|
RUN go get
|
||||||
RUN go build main.go
|
RUN go build main.go
|
||||||
|
Loading…
Reference in New Issue
Block a user