Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637FROM rust:1 AS chefRUN cargo install cargo-chefWORKDIR /app
FROM chef AS plannerCOPY . .RUN cargo chef prepare --recipe-path recipe.json
FROM chef AS builderCOPY --from=planner /app/recipe.json recipe.jsonRUN cargo chef cook --release --recipe-path recipe.jsonCOPY . .
# Install `dx`RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bashRUN cargo binstall dioxus-cli --root /.cargo -y --forceENV PATH="/.cargo/bin:$PATH"
# Create the final bundle folder. Bundle always executes in release mode with optimizations enabledRUN cd crates/weaver-server && dx bundle --release
FROM chef AS runtime
COPY --from=builder /app/target/dx/weaver-server/release/web/ /usr/local/app
# set our port and make sure to listen for all connectionsENV PORT=8080ENV IP=0.0.0.0
# expose the port 8080EXPOSE 8080
WORKDIR /usr/local/appENTRYPOINT [ "/usr/local/app/weaver-server" ]