30 lines
979 B
Plaintext
30 lines
979 B
Plaintext
#FROM jupyter/datascience-notebook:lab-3.0.16
|
|
FROM pbatey/jupyter-datascience-notebook-gpu
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV JUPYTER_ENABLE_LAB=yes
|
|
|
|
USER root
|
|
|
|
RUN apt-get update &&\
|
|
apt-get install -y libpq-dev python-dev gcc make zlib1g-dev
|
|
|
|
|
|
WORKDIR /opt
|
|
RUN \
|
|
curl -O https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz && \
|
|
tar xzf Python-3.8.1.tgz
|
|
WORKDIR /opt/Python-3.8.1
|
|
RUN \
|
|
./configure --enable-optimizations && \
|
|
make install
|
|
|
|
COPY requirements-jupyter.txt .
|
|
RUN pip install --upgrade --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org -r requirements-jupyter.txt && \
|
|
pip install --upgrade --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org https://github.com/timClicks/slate/archive/master.zip
|
|
|
|
WORKDIR /home/jovyan/work
|
|
|
|
CMD ["jupyter", "lab", "--port=8888", "--NotebookApp.token=''", "--NotebookApp.password=''", "--no-browser", "--ip=0.0.0.0", "--allow-root"]
|
|
|