diff --git a/Dockerfile b/Dockerfile index 502dfe0..73753b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,7 @@ RUN cargo build --release --target x86_64-unknown-linux-musl --package ezidam -- FROM scratch COPY --from=builder /ezidam/target/x86_64-unknown-linux-musl/release/ezidam /ezidam +COPY crates/ezidam/static static ENV ROCKET_CLI_COLORS=0 ENV ROCKET_ADDRESS=0.0.0.0 ENV ROCKET_PORT=8000 diff --git a/crates/ezidam/src/lib.rs b/crates/ezidam/src/lib.rs index 92531bd..42f581d 100644 --- a/crates/ezidam/src/lib.rs +++ b/crates/ezidam/src/lib.rs @@ -37,7 +37,7 @@ pub fn rocket_setup(rocket_builder: Rocket) -> Rocket { let rocket_builder = rocket_builder.attach(Template::fairing()); // Static assets - let rocket_builder = rocket_builder.mount("/", FileServer::from(relative!("static"))); + let rocket_builder = rocket_builder.mount("/", FileServer::from("static")); // Routes let rocket_builder = routes::routes(rocket_builder);