ziplinespacefr / Dockerfile
katz6969's picture
Update Dockerfile
5a1ab2a verified
raw
history blame contribute delete
No virus
492 Bytes
# 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"]