All checks were successful
Basic checks / Basic build-and-test supertask (push) Successful in 6m24s
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.
18 lines
422 B
Docker
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"]
|