Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,21 @@ updates:
default-days: 10
commit-message:
prefix: "ci"

# Container base images (digest pins in Dockerfile)
- package-ecosystem: docker
directory: /
schedule:
interval: weekly
day: monday
time: "06:00"
timezone: America/Chicago
open-pull-requests-limit: 10
groups:
docker:
patterns:
- "*"
cooldown:
default-days: 10
commit-message:
prefix: "build"
14 changes: 5 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# Development Dockerfile for basecamp
#
# NOTE: This Dockerfile requires vendored dependencies or BuildKit secrets
# for the private basecamp-sdk. For local builds, either:
# 1. Run `go mod vendor` first, then build with: docker build .
# 2. Use GoReleaser for release builds (handles auth automatically)
#
# For CI/release builds, use Dockerfile.goreleaser instead.
# Local builds only: `docker build .` (vendor first with `go mod vendor` when
# offline). Release binaries come from GoReleaser, not this image.

FROM golang:1.26-alpine AS builder
FROM golang:1.26-alpine@sha256:ce864e7223ac17b1775e6fd0b4c0db580c2eb50e7953a427916379e4b92a1628 AS builder

RUN apk add --no-cache git ca-certificates

Expand All @@ -20,7 +16,7 @@ ARG VERSION=dev
ARG COMMIT=unknown
ARG BUILD_DATE=unknown

# Build with vendored deps if available, otherwise try to download (may fail without auth for private SDK)
# Build with vendored deps if available, otherwise download
RUN if [ -d vendor ]; then \
CGO_ENABLED=0 GOOS=linux go build -mod=vendor \
-trimpath \
Expand All @@ -35,7 +31,7 @@ RUN if [ -d vendor ]; then \
fi

# Runtime stage using distroless for minimal attack surface
FROM gcr.io/distroless/static-debian12:nonroot
FROM gcr.io/distroless/static-debian12:nonroot@sha256:afa5c872c891853ca7fcf1f12c3edb23f7eeef36189728842dd51042ff57f7ab

COPY --from=builder /basecamp /basecamp

Expand Down
12 changes: 0 additions & 12 deletions Dockerfile.test

This file was deleted.

10 changes: 0 additions & 10 deletions docker-compose.test.yml

This file was deleted.

Loading