-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
642d652
commit 9d30b59
Showing
2 changed files
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |