diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9be2e51 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM rust:1.76.0 +WORKDIR /usr/src/chela +COPY . . +RUN cargo build -r +CMD ["./target/release/chela"] +EXPOSE 3000 diff --git a/src/main.rs b/src/main.rs index c775aa5..18fa942 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,8 +57,8 @@ async fn main() -> eyre::Result<()> { sqids, }; - let address = std::env::var("LISTEN_ADDRESS").unwrap_or("0.0.0.0".to_string()); - let port = std::env::var("LISTEN_PORT").unwrap_or("3000".to_string()); + let address = "0.0.0.0"; + let port = 3000; let router = init_routes(server_state); let listener = tokio::net::TcpListener::bind(format!("{address}:{port}")).await?;