fevaworks-labs / Dockerfile
warrenw's picture
init
0123005
raw
history blame contribute delete
740 Bytes
# Use the minimal jupyter notebook base image
FROM jupyter/minimal-notebook
# Set working directory
WORKDIR /app
# Install any additional packages you may need
# RUN conda install -y <your_packages_here>
# Set environment variables
ENV PASSWORD=password
ENV PORT=7860
# Add the entire directory to the container
ADD . /app
# Change the ownership of the working directory to the jovyan user
USER root
RUN chown -R jovyan /app
USER jovyan
# Expose the desired port
EXPOSE $PORT
# Run the jupyter notebook server
CMD jupyter notebook --ip 0.0.0.0 --port $PORT --no-browser --allow-root --NotebookApp.password=$(python -c "from notebook.auth import passwd; print(passwd('$PASSWORD'))")