set bind to 0.0.0.0 and port to 2137 hahahahah and docker

This commit is contained in:
2024-02-18 13:23:08 +01:00
parent c6832f17d0
commit cd2aa6a40f
3 changed files with 10 additions and 1 deletions

0
.dockerignore Normal file
View File

9
Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM rust:latest
WORKDIR /usr/src/go_to_sleep
COPY . .
RUN cargo build --release
CMD ["./target/release/go_to_sleep"]

View File

@@ -26,7 +26,7 @@ async fn main() -> std::io::Result<()> {
use actix_web::{App, HttpServer}; use actix_web::{App, HttpServer};
HttpServer::new(|| App::new().service(index)) HttpServer::new(|| App::new().service(index))
.bind(("127.0.0.1", 8080))? .bind(("0.0.0.0", 2137))?
.run() .run()
.await .await
} }