Dockerfile 540 B

1234567891011121314151617181920
  1. FROM alpine:3.19 as v86-builder
  2. WORKDIR /v86
  3. RUN apk add --update curl clang make openjdk8-jre-base npm python3
  4. RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && PATH="${HOME}/.cargo/bin:${PATH}" rustup target add wasm32-unknown-unknown
  5. COPY . .
  6. RUN PATH="${HOME}/.cargo/bin:${PATH}" make all && rm -rf closure-compiler gen lib src tools .cargo cargo.toml Makefile
  7. FROM python:3.10.13-alpine3.19
  8. WORKDIR /v86
  9. COPY --from=v86-builder v86 .
  10. ARG PORT=8000
  11. CMD python3 -m http.server ${PORT}
  12. EXPOSE ${PORT}