feat: update Dockerfile to include 'go mod tidy' before installation

This commit is contained in:
Marvin Zhang
2025-10-09 12:39:12 +08:00
parent 44fd0809e6
commit 883c954b4e

View File

@@ -16,7 +16,7 @@ COPY ./vcs ./vcs/
ENV GO111MODULE on
# Build from the backend directory which contains the main.go
RUN cd backend && go install -v ./...
RUN cd backend && go mod tidy && go install -v ./...
FROM alpine:3.14