Code-agent-v1 / Dockerfile
nakas's picture
Update Dockerfile
3a92c3c verified
raw
history blame
662 Bytes
FROM jupyter/base-notebook:python-3.9
# Install additional Python packages
RUN pip install numpy pandas matplotlib seaborn scikit-learn transformers torch
# Make port 8888 available for Jupyter
EXPOSE 8888
# Set the working directory
WORKDIR /home/jovyan/work
# Copy our sample notebook
COPY welcome.ipynb /home/jovyan/work/
# Set our entrypoint to start Jupyter without requiring a token
# and using the base URL required by Hugging Face Spaces
ENTRYPOINT ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--NotebookApp.token=''", "--NotebookApp.password=''", "--NotebookApp.allow_origin='*'", "--NotebookApp.base_url='/proxy/8888/'"]