🔄 fix: simplify Docker cache approach and integrate properly
Some checks failed
CI/CD Pipeline / CI Pipeline (push) Has been cancelled
CI/CD Pipeline / Build Docker Cache (push) Has started running

This commit is contained in:
2026-04-07 08:36:18 +02:00
parent 816e1b7bc8
commit 36823ac112
2 changed files with 51 additions and 13 deletions

View File

@@ -31,9 +31,16 @@ RUN go install github.com/swaggo/swag/cmd/swag@latest && \
COPY go.mod go.sum ./
RUN go mod download && go mod verify
# Copy the rest of the source (this happens in CI)
# COPY . .
# Simple build environment - source code is mounted at runtime
WORKDIR /workspace
# Build command (will be run in CI)
# RUN go build -o /out/server ./cmd/server && \
# go build -o /out/greet ./cmd/greet
# Install basic CI tools
RUN apk add --no-cache \
git \
bash \
make \
gcc \
musl-dev
# Pre-download common Go tools
RUN go install github.com/swaggo/swag/cmd/swag@latest