2020-11-08 20:05:38 +00:00
|
|
|
ARG VERSION
|
|
|
|
|
2021-04-13 21:12:39 +00:00
|
|
|
FROM pyodide/pyodide-env:${VERSION}
|
2020-11-08 20:05:38 +00:00
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
ENV EMSDK_NUM_CORES=4 EMCC_CORES=4 PYODIDE_JOBS=4
|
|
|
|
|
|
|
|
COPY . pyodide
|
|
|
|
|
|
|
|
# the rm at the end deletes the build results such that the resulting image can still be used for building pyodide
|
|
|
|
# from source (including partial and customized builds). Due to the previous run of make, builds
|
|
|
|
# executed with this image will be much faster than the ones executed with pyodide-env
|
2020-11-09 12:28:02 +00:00
|
|
|
RUN cd pyodide && make && rm -r ./build
|