-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (25 loc) · 827 Bytes
/
Dockerfile
File metadata and controls
31 lines (25 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Modifications Copyright 2024 SAP SE or an SAP affiliate company and Gardener contributors
############# builder
FROM golang:1.22.2 AS builder
ARG GOPROXY=https://proxy.golang.org,direct
ENV GOPROXY=$GOPROXY
WORKDIR /go/src/github.com/gardener/quic-reverse-http-tunnel
COPY . .
RUN make install
############# distroless-static
FROM gcr.io/distroless/static-debian12:nonroot as distroless-static
############# server
FROM distroless-static AS quic-server
COPY --from=builder /go/bin/server /server
WORKDIR /
ENTRYPOINT ["/server"]
############# client
FROM distroless-static AS quic-client
COPY --from=builder /go/bin/client /client
WORKDIR /
ENTRYPOINT ["/client"]
############# client-tcp
FROM distroless-static AS quic-client-tcp
COPY --from=builder /go/bin/client-tcp /client-tcp
WORKDIR /
ENTRYPOINT ["/client-tcp"]