43
0

add dockerfile to serve content on port 3000 #2

Yhdistetty
CyReVolt yhdistetty 1 committia lähteestä docker kohteeseen main 2024-05-23 22:19:51 +00:00
3 muutettua tiedostoa jossa 12 lisäystä ja 0 poistoa
Showing only changes of commit 4b85aa9927 - Show all commits

1
.dockerignore Normal file
Näytä tiedosto

@@ -0,0 +1 @@
/target

9
Dockerfile Normal file
Näytä tiedosto

@@ -0,0 +1,9 @@
FROM rust:1.75.0
WORKDIR /usr/src/chaospott-status
COPY . .
RUN cargo install --path .
EXPOSE 3000
CMD ["chaospott-status"]

Näytä tiedosto

@@ -21,6 +21,8 @@ async fn main() {
.route("/api/update.php", post(the_doors));
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
println!("Start serving");
axum::serve(listener, app).await.unwrap();
}