Spaces:
Paused
Paused
# Use an official Python image as a base | |
FROM python:3.9-slim | |
# Set the working directory to /app | |
WORKDIR /app | |
RUN useradd -m -s /bin/false jupyterlab | |
RUN chown -R jupyterlab:jupyterlab /home/jupyterlab | |
ENV JUPYTERLAB_DIR=/home/jupyterlab | |
# Install JupyterLab and its dependencies | |
RUN pip install --no-cache-dir jupyterlab | |
# Expose the port JupyterLab will use | |
EXPOSE 8888 | |
# Set the default command to run JupyterLab | |
CMD ["jupyter", "lab", "--ip", "0.0.0.0", "--allow-root", "--no-browser"] |