# Build container FROM golang:tip-trixie AS build # Setup environment RUN mkdir -p /data WORKDIR /data # Build the release COPY . . RUN make build/weron # Extract the release RUN mkdir -p /out RUN cp out/weron /out/weron # Release container FROM debian:bookworm # Add certificates RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* # Add the release COPY --from=build /out/weron /usr/local/bin/weron CMD ["/usr/local/bin/weron"]
# Docker build ignore .git .gitignore node_modules vendor out *.log *.tmp *.swp .DS_Store .idea .vscode .env .env.*
Build timed out after 600s
# Build container FROM golang:bookworm AS build # Setup environment RUN mkdir -p /data WORKDIR /data # Build the release COPY . . RUN make build/weron # Extract the release RUN mkdir -p /out RUN cp out/weron /out/weron # Release container FROM debian:bookworm # Add certificates RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* # Add the release COPY --from=build /out/weron /usr/local/bin/weron CMD ["/usr/local/bin/weron"]
Build timed out after 600s
# Build container FROM golang:bookworm AS build # Setup environment RUN mkdir -p /data WORKDIR /data # Reduce rebuilds by caching Go modules COPY go.mod go.sum ./ RUN go mod download # Build the release COPY . . RUN make build/weron # Extract the release RUN mkdir -p /out RUN cp out/weron /out/weron # Release container FROM debian:bookworm # Add certificates RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* # Add the release COPY --from=build /out/weron /usr/local/bin/weron CMD ["/usr/local/bin/weron"]
Build timed out after 600s
Image golang:tip-trixie exists on Docker Hub.
# Build container FROM golang:tip-trixie AS build # Setup environment RUN mkdir -p /data WORKDIR /data # Build the release COPY . . RUN make build/weron # Extract the release RUN mkdir -p /out RUN cp out/weron /out/weron # Release container FROM debian:bookworm # Add certificates RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* # Add the release COPY --from=build /out/weron /usr/local/bin/weron CMD ["/usr/local/bin/weron"]
Build timed out after 600s
# Build container FROM golang:bookworm AS build ENV CGO_ENABLED=0 WORKDIR /src # Download modules first for caching COPY go.mod go.sum ./ RUN go mod download # Build the release COPY . . RUN make build/weron # Extract the release RUN mkdir -p /out RUN cp out/weron /out/weron # Release container FROM debian:bookworm # Add certificates RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* # Add the release COPY --from=build /out/weron /usr/local/bin/weron CMD ["/usr/local/bin/weron"]
Build timed out after 600s
# Build container FROM golang:tip-trixie AS build ENV CGO_ENABLED=0 WORKDIR /src # Download modules first for caching COPY go.mod go.sum ./ RUN go mod download # Build the release COPY . . RUN make build/weron # Extract the release RUN mkdir -p /out RUN cp out/weron /out/weron # Release container FROM debian:bookworm # Add certificates RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* # Add the release COPY --from=build /out/weron /usr/local/bin/weron CMD ["/usr/local/bin/weron"]
Build timed out after 600s
# Build container FROM golang:bookworm AS build # Set working directory for the build WORKDIR /app # Cache module downloads COPY go.mod go.sum ./ RUN go mod download # Copy the rest of the source COPY . . # Build the release using the project's Makefile target RUN make build/weron # Collect the built binary RUN mkdir -p /out RUN cp out/weron /out/weron # Runtime container FROM debian:bookworm # Install TLS certificates RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* # Copy the release from the build stage COPY --from=build /out/weron /usr/local/bin/weron # Run the binary by default CMD ["/usr/local/bin/weron"]
# Ignore VCS and build output .git .gitignore vendor node_modules coverage *.log *.tmp *.exe *.out *.db .DS_Store **/__pycache__/ **/*.pyc # Go build artifacts out/ bin/ "docker-compose*.yml"
Build timed out after 600s
# Build container FROM golang:1.22-bookworm AS build # Set working directory for the build WORKDIR /app # Cache module downloads COPY go.mod go.sum ./ RUN go mod download # Copy the rest of the source COPY . . # Build the release using the project's Makefile target RUN make build/weron # Collect the built binary RUN mkdir -p /out RUN cp out/weron /out/weron # Runtime container FROM debian:bookworm # Add certificates RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* # Create a non-root user for security RUN groupadd -r weron && useradd -r -g weron -d /home/weron -s /usr/sbin/nologin weron # Copy the release from the build stage COPY --from=build /out/weron /usr/local/bin/weron # Ensure proper ownership RUN chown weron:weron /usr/local/bin/weron # Run as non-root user USER weron # Run the binary by default CMD ["/usr/local/bin/weron"]
Summary (under 1500 chars): - Exact error message and exit code: - Error: go: go.mod requires go >= 1.24 (running go 1.22.12; GOTOOLCHAIN=local) - Exit code: 1 - Failing command/step: - RUN go mod download (build 4/8; Dockerfile:9) - Missing packages or files mentioned: - None mentioned. The failure is due to a Go version mismatch, not missing files or packages. - Version mismatch info: - Build base image provides Go 1.22.12 (golang:1.22-bookworm). - go.mod requires Go >= 1.24. - Implication: Go version in the builder is too old for the module requirements, causing the failure at go mod download.
# Build container FROM golang:1.24-bookworm AS build # Set working directory for the build WORKDIR /app # Cache module downloads COPY go.mod go.sum ./ RUN go mod download # Copy the rest of the source COPY . . # Build the release using the project's Makefile target RUN make build/weron # Collect the built binary RUN mkdir -p /out RUN cp out/weron /out/weron # Runtime container FROM debian:bookworm # Add certificates RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* # Create a non-root user for security RUN groupadd -r weron && useradd -r -g weron -d /home/weron -s /usr/sbin/nologin weron # Copy the release from the build stage COPY --from=build /out/weron /usr/local/bin/weron # Ensure proper ownership RUN chown weron:weron /usr/local/bin/weron # Run as non-root user USER weron # Run the binary by default CMD ["/usr/local/bin/weron"]
Build timed out after 600s
# Build container FROM golang:1.24-bookworm AS build # Ensure static binary if possible ENV CGO_ENABLED=0 # Set working directory for the build WORKDIR /app # Cache module downloads COPY go.mod go.sum ./ RUN go mod download # Copy the rest of the source COPY . . # Build the release directly from Go sources RUN go build -o /out/weron ./cmd/weron # Collect the built binary (optional, kept for compatibility) # RUN mkdir -p /out # RUN cp /out/weron /out/weron # Runtime container FROM debian:bookworm # Add certificates RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* # Create a non-root user for security RUN groupadd -r weron && useradd -r -g weron -d /home/weron -s /usr/sbin/nologin weron # Copy the release from the build stage COPY --from=build /out/weron /usr/local/bin/weron # Ensure proper ownership RUN chown weron:weron /usr/local/bin/weron # Run as non-root user USER weron # Run the binary by default CMD ["/usr/local/bin/weron"]
Build timed out after 600s
# Build container FROM golang:1.24-bookworm AS build # Setup environment RUN mkdir -p /data WORKDIR /data # Build static binary ENV CGO_ENABLED=0 # Cache dependencies COPY go.mod go.sum ./ RUN go mod download # Copy source and build COPY . . RUN make build/weron # Extract the release RUN mkdir -p /out RUN cp out/weron /out/weron # Release container FROM debian:bookworm-slim # Install CA certificates for TLS RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates \ && rm -rf /var/lib/apt/lists/* # Add the release COPY --from=build /out/weron /usr/local/bin/weron CMD ["/usr/local/bin/weron"]
# Ignore VCS and binaries .git .gitignore node_modules vendor out *.log Dockerfile .dockerignore
Summary of Docker build error (concise, actionable)
- Exact error message and exit code
- E: You don't have enough free space in /var/cache/apt/archives/.
- Exit code: 100
- Context shown: The apt-get install step failed due to insufficient disk space during package download.
- Failing command/step
- Stage: stage-1 2/3
- Command: RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*
- Missing packages or files mentioned
- The operation intends to install: ca-certificates, libssl3, openssl
- Log notes:
- The following NEW packages will be installed: ca-certificates libssl3 openssl
- The following additional packages will be installed: libssl3 openssl
- Need to get 3627 kB of archives.
- After this operation, 8936 kB of additional disk space will be used.
- Version mismatch info
- Base images used:
- golang:1.24-bookworm
- debian:bookworm-slim (stage-1 reference uses sha256 digest)
- No explicit version-mismatch error reported in the log; only a space/disk issue is shown.# Build container FROM golang:1.24-bookworm AS build # Setup environment RUN mkdir -p /data WORKDIR /data # Build static binary ENV CGO_ENABLED=0 # Cache dependencies COPY go.mod go.sum ./ RUN go mod download # Copy source and build COPY . . RUN make build/weron # Extract the release RUN mkdir -p /out RUN cp out/weron /out/weron # Release container FROM debian:bookworm-slim # Install CA certificates for TLS RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates \ && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* # Add the release COPY --from=build /out/weron /usr/local/bin/weron CMD ["/usr/local/bin/weron"]
- Failing command/step: - RUN make build/weron (build 7/9) - Exit code: - process "/bin/sh -c make build/weron" did not complete successfully: exit code: 2 - Exact error messages (preserved snippets): - compile: writing output: write $WORK/b163/_pkg_.a: no space left on device - encoding/gob: mkdir /tmp/go-build662972039/b195/: no space left on device - go: failed to trim cache: write /root/.cache/go-build/trim.txt: no space left on device - make: *** [Makefile:17: build/weron] Error 1 - Context/details: - Stage: build 7/9 - Base images involved: golang:1.24-bookworm and debian:bookworm-slim - The earlier steps (e.g., apt-get install) completed successfully; the failure occurs during the Go build due to insufficient disk space (no space left on device). - Missing packages/files: - None indicated as missing; the failure is due to disk space exhaustion, not missing dependencies. - Version mismatch information: - No explicit version mismatch reported. Images used are golang:1.24-bookworm and debian:bookworm-slim; logs show normal package install. - Root cause (inferred): - Disk space exhausted inside the build container (no space left on device), causing Go compilation and cache trimming to fail.
# Build container FROM golang:1.24-bookworm AS build # Setup environment RUN mkdir -p /data WORKDIR /data # Build static binary ENV CGO_ENABLED=0 # Cache dependencies COPY go.mod go.sum ./ RUN go mod download # Copy source and build COPY . . RUN make build/weron # Extract the release RUN mkdir -p /out RUN cp out/weron /out/weron # Release container - use distroless static for small footprint FROM gcr.io/distroless/static:nonroot # Add the release COPY --from=build /out/weron /usr/local/bin/weron CMD ["/usr/local/bin/weron"]
# Build container FROM golang:1.24-bookworm AS build # Setup environment RUN mkdir -p /data WORKDIR /data # Build static binary ENV CGO_ENABLED=0 # Cache dependencies COPY go.mod go.sum ./ RUN go mod download # Copy source and build COPY . . RUN make build/weron # Extract the release RUN mkdir -p /out RUN cp out/weron /out/weron # Release container FROM debian:bookworm-slim # NOTE: Intentionally omit ca-certificates install to keep image small and avoid space issues in CI. # Add the release COPY --from=build /out/weron /usr/local/bin/weron CMD ["/usr/local/bin/weron"]
Summary (under 1500 chars):
- Failing step (command): RUN make build/weron (Dockerfile line 17; part of build stage 7/9)
- Exact error messages and exit code:
- compile: writing output: write $WORK/b163/_pkg_.a: no space left on device
- encoding/gob: mkdir /tmp/go-build387845068/b195/: no space left on device
- go: failed to trim cache: write /root/.cache/go-build/trim.txt: no space left on device
- make: *** [Makefile:17: build/weron] Error 1
- ERROR: failed to solve: process "/bin/sh -c make build/weron" did not complete successfully: exit code: 2
- Missing packages or files mentioned: None. The log indicates disk space issues ("no space left on device") rather than missing dependencies.
- Version/mismatch info:
- Base images used: golang:1.24-bookworm and debian:bookworm-slim
- No version mismatch is explicitly reported; the failure is due to insufficient disk space during the Go build.# Build container FROM golang:1.24-bookworm AS build # Setup environment RUN mkdir -p /data WORKDIR /data # Build static binary ENV CGO_ENABLED=0 ENV GOCACHE=off ENV GOMAXPROCS=1 # Cache dependencies COPY go.mod go.sum ./ RUN go mod download # Copy source and build COPY . . RUN make build/weron # Extract the release RUN mkdir -p /out RUN cp out/weron /out/weron # Release container FROM debian:bookworm-slim # Install CA certificates for TLS RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates \ && rm -rf /var/lib/apt/lists/* # Add the release COPY --from=build /out/weron /usr/local/bin/weron CMD ["/usr/local/bin/weron"]
- Failing command/step:
[stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*
- Exact error and exit code:
ERROR: failed to build: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
- Key signature issues:
- The output around the failing step shows signature verification failures:
At least one invalid signature was encountered.
- W: GPG error: http://deb.debian.org/debian bookworm InRelease: At least one invalid signature was encountered.
- E: The repository 'http://deb.debian.org/debian bookworm InRelease' is not signed.
- W: GPG error: http://deb.debian.org/debian bookworm-updates InRelease: At least one invalid signature was encountered.
- E: The repository 'http://deb.debian.org/debian bookworm-updates InRelease' is not signed.
- W: GPG error: http://deb.debian.org/debian-security bookworm-security InRelease: At least one invalid signature was encountered.
- E: The repository 'http://deb.debian.org/debian-security bookworm-security InRelease' is not signed.
- Missing packages/files:
- Package targeted: ca-certificates
- Repositories reported not signed / invalid signatures:
- http://deb.debian.org/debian bookworm InRelease
- http://deb.debian.org/debian bookworm-updates InRelease
- http://deb.debian.org/debian-security bookworm-security InRelease
- GPG errors indicate invalid signatures for the bookworm InRelease sources.
- Version/base image context:
- Base images involved: golang:1.24-bookworm and debian:bookworm-slim (sha256 digests shown in the build logs). No explicit version mismatch detail beyond that.