v86/tools/docker/exec/Dockerfile
SuperMaxusa 21cf9ad75c
Update Dockerfile for building (#988)
Update Readme.md (about building using Docker)
2024-02-04 23:35:51 +01:00

20 lines
540 B
Docker

FROM alpine:3.19 as v86-builder
WORKDIR /v86
RUN apk add --update curl clang make openjdk8-jre-base npm python3
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
COPY . .
RUN PATH="${HOME}/.cargo/bin:${PATH}" 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}