feat: migrate to rust
All checks were successful
Build OCI Image / docker (push) Successful in 3m4s

This commit is contained in:
2025-05-23 11:37:48 -04:00
parent 582dd5f2c4
commit 85ed592e73
9 changed files with 411 additions and 97 deletions

View File

@@ -1,8 +1,15 @@
FROM golang:1-alpine3.21 as build
FROM rust:1-alpine3.21 as build
WORKDIR /src
RUN apk add --no-cache musl-dev
COPY . .
RUN go build -o /proxy .
RUN cargo install --path .
FROM alpine:3.21
COPY --from=build /proxy /proxy
ENTRYPOINT [ "/proxy" ]
COPY --from=build /usr/local/cargo/bin/tcp_proxy /usr/local/bin/tcp_proxy
ENTRYPOINT [ "tcp_proxy" ]