-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
6 changed files
with
34 additions
and
31 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,16 +1,5 @@ | ||
FROM golang:1.22-alpine3.19 AS builder | ||
# hadolint ignore=DL3018 | ||
RUN apk add --no-cache alpine-sdk ca-certificates curl | ||
|
||
WORKDIR /app | ||
COPY go.* ./ | ||
RUN go mod download | ||
COPY . . | ||
RUN make vendor build | ||
|
||
FROM alpine:3.19 | ||
|
||
COPY --from=builder /app/reverse-http /reverse-http | ||
|
||
RUN apk add ca-certificates | ||
COPY reverse-http / | ||
USER 65532:65532 | ||
ENTRYPOINT ["/reverse-http"] |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM golang:1.22-alpine3.19 AS builder | ||
# hadolint ignore=DL3018 | ||
RUN apk add --no-cache alpine-sdk ca-certificates curl | ||
|
||
WORKDIR /app | ||
COPY go.* ./ | ||
RUN go mod download | ||
COPY . . | ||
RUN make vendor build | ||
|
||
FROM alpine:3.19 | ||
COPY --from=builder /app/reverse-http /reverse-http | ||
USER 65532:65532 | ||
ENTRYPOINT ["/reverse-http"] |
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
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
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
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