Files
another-asteroids/Dockerfile
Robert Garrett 84d93d496a
All checks were successful
Basic checks / Basic build-and-test supertask (push) Successful in 6m24s
Remove Linux-specific deps from web build
The Alsa and Udev system dependencies are only required on Linux. The
WASM/WASI build doesn't use them, so they don't need to exist in the
build container.
2025-11-08 12:10:42 -06:00

18 lines
422 B
Docker

FROM rust:1.89 AS builder
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"]