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
45 changes: 45 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Git files
.git
.github
.gitignore

# Documentation
*.md
docs/
images/
LICENSE.md
CHANGELOG.md
CONTRIBUTING.md
AGENT.md
README.md

# Build artifacts
dist/
build-logs-*

# Test files
*_test.go
fixtures/
internal/*/resolver/*_test.go
internal/ui/ui_test.go

# IDE and editor files
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store

# CI/CD files
.buildkite/
buildkite.yaml
.bk.yaml

# Config files not needed for build
.golangci.yaml
.graphqlrc.yml
genqlient.yaml

# Dependencies (these will be downloaded during build)
vendor/
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM golang:1.24-alpine AS base

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

WORKDIR /base

COPY go.mod go.sum ./

RUN go mod download

COPY . .

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o bk .

FROM alpine:latest

RUN apk --no-cache add ca-certificates

WORKDIR /cli

COPY --from=base /base/bk .

ENV PATH="/cli:${PATH}"

ENTRYPOINT ["bk"]