Skip to content

Commit

Permalink
validator: update docker builds to use scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
tsloughter committed Aug 30, 2024
1 parent c3b2f7c commit 1f31826
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions validator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM golang:1.22 AS build
FROM golang:1.22-alpine AS build

WORKDIR /app

Expand All @@ -14,7 +14,7 @@ COPY . .
RUN --mount=type=cache,target=/root/.cache/go-build,id=cache-go-build --mount=type=cache,target=/root/.cache/go-mod,id=cache-go-mod \
CGO_ENABLED=0 GOOS=linux go build -o /otel_config_validator

FROM gcr.io/distroless/base-debian12 AS releaser
FROM scratch AS releaser

WORKDIR /opt/otel_config_validator

Expand Down

0 comments on commit 1f31826

Please sign in to comment.