diff --git a/Dockerfile b/Dockerfile index 20a645e7..50e5cc6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,6 +35,12 @@ COPY stubs /grist/stubs COPY buildtools /grist/buildtools RUN yarn run build:prod +# Prepare material for optional pyodide sandbox +COPY sandbox/pyodide /grist/sandbox/pyodide +COPY sandbox/requirements3.txt /grist/sandbox/requirements3.txt +RUN \ + cd /grist/sandbox/pyodide && make setup + ################################################################################ ## Python collection stage ################################################################################ @@ -108,6 +114,9 @@ ADD sandbox /grist/sandbox ADD plugins /grist/plugins ADD static /grist/static +# Make optional pyodide sandbox available +COPY --from=builder /grist/sandbox/pyodide /grist/sandbox/pyodide + # Finalize static directory RUN \ mv /grist/static-built/* /grist/static && \