mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-04-29 19:01:42 +02:00

* Update dependencies gvisor was not updated to the latest version, because it did not compile. * actions: Update go version to 1.20 * docker: Update go version to 1.20
19 lines
569 B
Docker
19 lines
569 B
Docker
# Start by building the application.
|
|
FROM docker.io/golang:1.20 as build
|
|
|
|
WORKDIR /usr/src/wireproxy
|
|
COPY . .
|
|
|
|
RUN make
|
|
|
|
# Now copy it into our base image.
|
|
FROM gcr.io/distroless/static-debian11:nonroot
|
|
COPY --from=build /usr/src/wireproxy/wireproxy /usr/bin/wireproxy
|
|
|
|
VOLUME [ "/etc/wireproxy"]
|
|
ENTRYPOINT [ "/usr/bin/wireproxy" ]
|
|
CMD [ "--config", "/etc/wireproxy/config" ]
|
|
|
|
LABEL org.opencontainers.image.title wireproxy
|
|
LABEL org.opencontainers.image.description "Wireguard client that exposes itself as a socks5 proxy"
|
|
LABEL org.opencontainers.image.licenses ISC
|