Add Dockerfile
This commit is contained in:
parent
6c44d2eeab
commit
c9dc4e5b8b
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@ -0,0 +1,6 @@
|
||||
FROM rust:1.76.0
|
||||
WORKDIR /usr/src/chela
|
||||
COPY . .
|
||||
RUN cargo build -r
|
||||
CMD ["./target/release/chela"]
|
||||
EXPOSE 3000
|
@ -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?;
|
||||
|
Loading…
Reference in New Issue
Block a user