fix: Copy the go files to the image to build
Some checks failed
Build Docker / BuildSite (push) Failing after 1m47s

This commit is contained in:
Nathan Woodburn 2024-06-20 21:03:47 +10:00
parent 7732ea1462
commit 58fb7f7ebf
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -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