switch proxies to from scracth
This commit is contained in:
parent
2122b8dd6c
commit
d483b230e4
3 changed files with 5 additions and 12 deletions
12
Dockerfile
12
Dockerfile
|
|
@ -20,19 +20,15 @@ COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/edge_node_hold
|
||||||
ENTRYPOINT ["/edge_node_holder_server"]
|
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
|
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"]
|
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
|
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"]
|
ENTRYPOINT ["/proxy_secure"]
|
||||||
|
|
||||||
|
|
||||||
FROM scratch AS backend-auth
|
FROM scratch AS backend-auth
|
||||||
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/backend_server_insecure /backend_server_insecure
|
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/backend_server_insecure /backend_server_insecure
|
||||||
ENTRYPOINT ["/backend_server_insecure"]
|
ENTRYPOINT ["/backend_server_insecure"]
|
||||||
|
|
|
||||||
|
|
@ -111,5 +111,4 @@ pub async fn start() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
drop(conn);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ pub async fn start() {
|
||||||
.await
|
.await
|
||||||
.expect("unable to add socket");
|
.expect("unable to add socket");
|
||||||
|
|
||||||
let conn = socket_secure.connect(auth_sockaddr).await.unwrap();
|
// let conn = socket_secure.connect(auth_sockaddr).await.unwrap();
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let Some(mut conn) = socket_secure.accept().await else {
|
let Some(mut conn) = socket_secure.accept().await else {
|
||||||
|
|
@ -99,6 +99,4 @@ pub async fn start() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
drop(conn);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue