FROM i386/debian:buster-slim # Set environment variables ENV DEBIAN_FRONTEND=noninteractive ENV PYTHONUNBUFFERED=1 ENV PATH="/root/.local/bin:$PATH" # Install system dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ ca-certificates \ curl \ git \ libzmq3-dev \ pkg-config \ python3 \ python3-dev \ python3-pip \ python3-setuptools \ python3-wheel \ wget \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Upgrade pip RUN python3 -m pip install --no-cache-dir --upgrade pip # Install core Jupyter components RUN python3 -m pip install --no-cache-dir \ jupyter \ jupyterlab \ notebook \ voila # Install data science libraries RUN python3 -m pip install --no-cache-dir \ numpy \ pandas \ matplotlib \ scipy \ scikit-learn \ seaborn \ statsmodels # Install file processing libraries RUN python3 -m pip install --no-cache-dir \ openpyxl \ xlrd \ xlwt \ pyarrow \ fastparquet \ python-docx \ pdfminer.six \ beautifulsoup4 \ lxml \ pillow # Install WASM-friendly packages RUN python3 -m pip install --no-cache-dir \ pyodide-pack # Set up workspace directory WORKDIR /workspace RUN mkdir -p /workspace/data # Configure Jupyter RUN mkdir -p /root/.jupyter && \ echo "c.NotebookApp.ip = '0.0.0.0'" >> /root/.jupyter/jupyter_notebook_config.py && \ echo "c.NotebookApp.port = 8888" >> /root/.jupyter/jupyter_notebook_config.py && \ echo "c.NotebookApp.open_browser = False" >> /root/.jupyter/jupyter_notebook_config.py && \ echo "c.NotebookApp.allow_root = True" >> /root/.jupyter/jupyter_notebook_config.py && \ echo "c.NotebookApp.token = ''" >> /root/.jupyter/jupyter_notebook_config.py && \ echo "c.NotebookApp.password = ''" >> /root/.jupyter/jupyter_notebook_config.py # Entry point script for WASM compatibility COPY <