Skip to content

Commit

Permalink
Upgrade Alpine image to 3.20
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Jun 28, 2024
1 parent 642d652 commit 9d30b59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
FROM --platform=linux/amd64 golang:1.22-alpine AS builder
FROM --platform=linux/amd64 golang:1.22-alpine3.20 AS builder

WORKDIR /app

RUN apk -U add ca-certificates
RUN apk update && apk upgrade && apk add pkgconf git bash build-base sudo
RUN apk -U add ca-certificates && apk update && apk upgrade && apk add git

COPY . .

RUN go build -o transfer .

FROM --platform=linux/amd64 alpine:3.19 AS runner
FROM --platform=linux/amd64 alpine:3.20 AS runner

COPY --from=builder /app/transfer /
2 changes: 1 addition & 1 deletion goreleaser.dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM --platform=linux/amd64 alpine:3.16
FROM --platform=linux/amd64 alpine:3.20
COPY transfer /transfer

0 comments on commit 9d30b59

Please sign in to comment.