From 58fb7f7ebfa6e9f80c234eb2c44045aa43f6b365 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 20 Jun 2024 21:03:47 +1000 Subject: [PATCH] fix: Copy the go files to the image to build --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 02e5a5c..dc3dd98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,8 @@ FROM golang:1.19 WORKDIR /app COPY main.go ./ +COPY go.mod ./ +COPY go.sum ./ COPY templates ./templates/ RUN go get RUN go build main.go