🐛 fix: Move WORKDIR before COPY in Dockerfile.build
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Successful in 52s
CI/CD Pipeline / CI Pipeline (push) Failing after 4m22s
CI/CD Pipeline / Trigger Docker Push (push) Has been skipped

This commit is contained in:
2026-04-09 12:19:40 +02:00
parent a9e2f08a28
commit e27ed5b6ca

View File

@@ -32,12 +32,12 @@ RUN go install github.com/swaggo/swag/cmd/swag@latest && \
go install golang.org/x/tools/cmd/goimports@latest && \
go install honnef.co/go/tools/cmd/staticcheck@latest
# Simple build environment - source code is mounted at runtime
WORKDIR /build
# Copy only go.mod and go.sum first for dependency caching
COPY go.mod go.sum ./
RUN go mod download && go mod verify
# Simple build environment - source code is mounted at runtime
WORKDIR /build
# Pre-download common Go tools (already installed in base)
# RUN go install github.com/swaggo/swag/cmd/swag@latest