Skip to content

Commit

Permalink
Merge pull request #1 from sholdee/develop
Browse files Browse the repository at this point in the history
scratch image
  • Loading branch information
sholdee authored Jul 9, 2024
2 parents 692b6a0 + b280e45 commit b129b19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ RUN go mod download
# Copy the source code
COPY . ./

# Build the application
# Build the application with static linking
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags="-s -w" -o adguard-exporter .

# Create a minimal Alpine image
FROM alpine:3.20
# Create a scratch image
FROM scratch

WORKDIR /app

Expand Down

0 comments on commit b129b19

Please sign in to comment.