Spaces:
Runtime error
Runtime error
File size: 828 Bytes
b31d0de 95f3257 b31d0de eb7c6b2 b31d0de |
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 |
FROM alpine:3.19 as v86-builder
WORKDIR /v86
# build-base์ git ํจํค์ง ์ถ๊ฐ
RUN apk add --update curl build-base clang openjdk8-jre-base npm python3 git
# rustup ์ค์น ํ ENV๋ก PATH๋ฅผ ์๊ตฌ์ ์ผ๋ก ์ค์
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN rustup target add wasm32-unknown-unknown
# Git ์ ์ฅ์ ํด๋ก ๋ฐ ์๋ธ๋ชจ๋ ์
๋ฐ์ดํธ (copy.sh/v86์ ์ค์ ๊ฒฝ๋ก๋ก ๋์ฒด)
RUN git clone https://github.com/copy/v86.git .
RUN git submodule update --init --recursive
# PATH ์ค์ ์์ด make all ์คํ
RUN make all && rm -rf closure-compiler gen lib src tools .cargo cargo.toml Makefile
FROM python:3.10.13-alpine3.19
WORKDIR /v86
COPY --from=v86-builder /v86 .
ARG PORT=8000
CMD python3 -m http.server ${PORT}
EXPOSE ${PORT} |