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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user