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

* fix: must close the connection after processing I think it should help to close #80 * feat: migration to github.com/things-go/go-socks5 - preallocate config slices - not used interfaces in consumer - do not allocate new variables in loops * feat: close connection after full processing * feat: correct process sigint signal * feat: improve build system * fix: http proxy * feat: update golangci-lint-action to v3.7.0 * feat: correct process routines * fix: close http conn correctly * feat: update golangci-lint-action to v4 * fix: goreleaser used clean now
19 lines
573 B
Docker
19 lines
573 B
Docker
# Start by building the application.
|
|
FROM docker.io/golang:1.21 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"
|