diff --git a/Dockerfile b/Dockerfile index 367269f..d3c3b0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,9 @@ ENV GOWORK=off # Set the working directory inside the container based on the environment variable WORKDIR $SERVER_DIR +# Install git so Go can fetch private modules during go mod download +RUN apk add --no-cache git + # Set the Go proxy to improve dependency resolution speed # ENV GOPROXY=https://goproxy.io,direct