Spaces:
Runtime error
Runtime error
| 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} |