switch proxies to from scracth

This commit is contained in:
Maple 2026-01-31 22:04:54 +01:00
commit d483b230e4
3 changed files with 5 additions and 12 deletions

View file

@ -20,19 +20,15 @@ COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/edge_node_hold
ENTRYPOINT ["/edge_node_holder_server"]
FROM alpine:latest AS proxy-insecure
FROM scratch AS proxy-insecure
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/proxy_insecure /proxy_insecure
RUN apk add --no-cache ca-certificates
RUN update-ca-certificates
ENTRYPOINT ["/proxy_insecure"]
FROM alpine:latest AS proxy-secure
FROM scratch AS proxy-secure
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/proxy_secure /proxy_secure
RUN apk add --no-cache ca-certificates
RUN update-ca-certificates
ENTRYPOINT ["/proxy_secure"]
FROM scratch AS backend-auth
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/backend_server_insecure /backend_server_insecure
ENTRYPOINT ["/backend_server_insecure"]

View file

@ -111,5 +111,4 @@ pub async fn start() {
}
});
}
drop(conn);
}

View file

@ -35,7 +35,7 @@ pub async fn start() {
.await
.expect("unable to add socket");
let conn = socket_secure.connect(auth_sockaddr).await.unwrap();
// let conn = socket_secure.connect(auth_sockaddr).await.unwrap();
loop {
let Some(mut conn) = socket_secure.accept().await else {
@ -99,6 +99,4 @@ pub async fn start() {
}
});
}
drop(conn);
}