Debian Codegraph @

doc/pyodide/Dockerfile

raw
1 # Dockerfile for building Pyodide with a Pygments version from the current checkout.
2 # This is used by the `pyodide` tox environment (see /tox.ini).
3 FROM ghcr.io/pygments/pyodide-base:0.28.1 AS build-stage
4
5 COPY . /pygments
6 RUN sed -i -e 's,dynamic =.*,version = "2.99",' /pygments/pyproject.toml
7
8 WORKDIR /pyodide
9 COPY doc/pyodide/meta.yaml packages/Pygments/
10 RUN cd /emsdk && . ./emsdk_env.sh && cd /pyodide && pyodide build-recipes Pygments --install
11 RUN for file in pyodide.js pyodide.asm.js pyodide.asm.wasm python_stdlib.zip; do cp /root/.cache/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/$file /pyodide/dist; done
12
13 FROM scratch AS export-stage
14
15 COPY --from=build-stage /pyodide/dist /