This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2021-04-02 07:41:35 +00:00
|
|
|
FROM golang:1.16.3 AS builder
|
2020-09-02 22:04:12 +00:00
|
|
|
|
|
|
|
WORKDIR /work
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2021-01-16 20:49:30 +00:00
|
|
|
RUN go build -o /work/proxy ./cmd/proxy
|
2020-09-02 22:04:12 +00:00
|
|
|
|
|
|
|
# Copy binary to alpine
|
2020-09-19 09:43:22 +00:00
|
|
|
FROM gcr.io/distroless/base-debian10:debug
|
|
|
|
|
2020-09-02 22:04:12 +00:00
|
|
|
COPY --from=builder /work/proxy /
|
2020-09-19 09:43:22 +00:00
|
|
|
|
2020-12-05 21:08:42 +00:00
|
|
|
HEALTHCHECK CMD [ "wget", "--spider", "http://localhost:4180/akprox/ping" ]
|
2020-09-19 09:43:22 +00:00
|
|
|
|
2020-09-02 22:04:12 +00:00
|
|
|
ENTRYPOINT ["/proxy"]
|