-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (23 loc) · 778 Bytes
/
Dockerfile
File metadata and controls
28 lines (23 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# syntax=docker/dockerfile:1.19.0
FROM debian:forky-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
binaryen \
clang-19 \
llvm-19 \
make \
rustup
# Based on https://github.com/andizimmerer/docker-rust-wasm/blob/master/Dockerfile
RUN rustup update && \
rustup install 1.91.1 && \
rustup default 1.91.1 && \
rustup target add wasm32-unknown-unknown --toolchain 1.91.1
WORKDIR "/app"
COPY --exclude=Dockerfile --exclude=.git . "/app"
RUN ln -s /usr/bin/clang-19 /usr/bin/clang
RUN ln -s /usr/bin/clang-19 /usr/bin/cc
RUN make
FROM nginx:1.29
WORKDIR "/usr/share/nginx/html/sctv"
COPY --from=0 --chown=nginx:nginx "/app/index.html" "/app/main.js" "/app/doom.wasm" "/usr/share/nginx/html/sctv"