Skip to content

Commit

Permalink
Update Dockerfile and main.rs to change exposed port to 5900 and incl…
Browse files Browse the repository at this point in the history
…ude config.yml
  • Loading branch information
DanielSarmiento04 committed Dec 30, 2024
1 parent 7d22ff1 commit 55a11e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ FROM rust:${RUST_VERSION} AS build
ARG APP_NAME
WORKDIR /app

COPY ./config.yml /app/config.yml

RUN --mount=type=bind,source=src,target=src \
--mount=type=bind,source=Cargo.toml,target=Cargo.toml \
--mount=type=bind,source=Cargo.lock,target=Cargo.lock \
Expand All @@ -19,6 +21,6 @@ RUN --mount=type=bind,source=src,target=src \
cp ./target/release/$APP_NAME /bin/server


EXPOSE 8000
EXPOSE 5900

CMD ["/bin/server"]
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ async fn main() -> std::io::Result<()> {
.wrap(actix_web::middleware::Compress::default())
.configure(|cfg| configure_route(cfg, route_handler.clone()))
})
.bind(("0.0.0.0", 8080))?
.bind(("0.0.0.0", 5900))?
.run()
.await
}

0 comments on commit 55a11e1

Please sign in to comment.