Files
another-boids-in-rust/Dockerfile
Robert Garrett ba5183b30d Remove bogus dependencies from build container
These are only required for Linux builds, not WASM/WASI builds.
2025-11-08 10:59:30 -06:00

19 lines
441 B
Docker

FROM rust:1.89 AS builder
RUN apt-get update
RUN rustup target add wasm32-unknown-unknown
RUN cargo install --locked wasm-bindgen-cli
COPY . .
RUN make -j
FROM busybox:musl
RUN mkdir -p /var/www
COPY --from=builder ./out/ /var/www
WORKDIR /var/www
# TODO: Make httpd accept interrupt signals so the container exits properly.
# (<ctrl>+c and `docker stop ...` don't work because Busybox doesn't answer)
CMD ["httpd", "-f", "-p", "8080"]