From 040f1ed1895dcb04f502206d5413ebf80894dcb2 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Thu, 12 Oct 2023 08:53:28 -0300 Subject: [PATCH] feat: add expose and listen on 8080 --- Dockerfile | 2 ++ src/main.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3dcd06b..b0316de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,4 +30,6 @@ RUN apt-get update && apt install -y openssl libssl-dev COPY --from=build /presence/target/release/presence . +EXPOSE 8080 + CMD ["./presence"] diff --git a/src/main.rs b/src/main.rs index c1cb456..db430c3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -131,7 +131,7 @@ async fn main() -> std::io::Result<()> { .app_data(web::Data::new(state.clone())) .route("/", web::get().to(connect_handler)) }) - .bind("127.0.0.1:80")? + .bind("127.0.0.1:8080")? .run() .await }