Skip to content

Commit

Permalink
docker base image changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alanjino committed May 13, 2024
1 parent d570338 commit ea3d01d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions dockerfiles/agent/container/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM cgr.dev/chainguard/wolfi-base AS builder
RUN apk update && apk add go-1.21
FROM cgr.dev/chainguard/go:latest AS builder

WORKDIR /
COPY ./ ./

Expand Down
4 changes: 2 additions & 2 deletions dockerfiles/agent/git/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM cgr.dev/chainguard/wolfi-base AS builder
RUN apk update && apk add go-1.21
FROM cgr.dev/chainguard/go:latest AS builder

WORKDIR /
COPY ./ ./

Expand Down
4 changes: 2 additions & 2 deletions dockerfiles/client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Build the manager binary
FROM cgr.dev/chainguard/wolfi-base AS builder
RUN apk update && apk add go-1.21
FROM cgr.dev/chainguard/go:latest AS builder

WORKDIR /workspace
# Copy the Go Modules manifests
COPY ./ ./
Expand Down
5 changes: 2 additions & 3 deletions dockerfiles/migration/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM cgr.dev/chainguard/wolfi-base AS builder
RUN apk update && apk add go-1.21
FROM cgr.dev/chainguard/go:latest AS builder
WORKDIR /workspace
COPY ./ ./
RUN go mod download
Expand All @@ -10,7 +9,7 @@ RUN chmod +x /workspace/script/wait-for-clickhouse.sh

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM cgr.dev/chainguard/static:latest
FROM cgr.dev/chainguard/wolfi-base
RUN apk add --no-cache netcat-openbsd
WORKDIR /
COPY --from=builder /workspace/migration .
Expand Down

0 comments on commit ea3d01d

Please sign in to comment.