Dockerfile (882B)
1 # This Dockerfile can be use to build a container to test nissy in different 2 # platforms. For example you can build the image with: 3 # 4 # docker build localhost/nissy-dev/arm . 5 # 6 # And then run unit tests in an arm64 container with 7 # 8 # docker run --platform=linux/arm64 -t localhost/nissy-dev/arm ./build test 9 10 FROM debian:12 11 12 # Install necessary packages 13 RUN apt update 14 RUN apt install --yes xz-utils git gcc g++ clang python3 python3-dev 15 16 # Install emscripten. 17 RUN git clone https://github.com/emscripten-core/emsdk.git 18 WORKDIR /emsdk 19 RUN ./emsdk install 4.0.11 20 RUN ./emsdk activate 4.0.11 21 ENV EMSDK="/emsdk" 22 ENV EMSDK_NODE_BIN="$EMSDK/node/22.16.0_64bit/bin" 23 ENV EMSDK_NODE="$EMSDK_NODE_BIN/node" 24 ENV PATH="$EMSDK:$EMSDK/upstream/emscripten:$EMSDK_NODE_BIN:$PATH" 25 26 # Copying the nissy-core repository and switching to that folder. 27 WORKDIR / 28 COPY . ./nissy-core 29 WORKDIR /nissy-core