File size: 492 Bytes
51da3b5
 
 
 
 
810b721
 
5a1ab2a
51da3b5
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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"]