Files
2026-03-25 08:56:05 +01:00

22 lines
796 B
Docker

FROM debian:11
# Install system dependencies
RUN apt-get update && apt-get install -y wget libgl1 libglib2.0-0 python2 python3 python3-pip libsm6 libxext6 libxrender1
# Create main env for Jupyter Notebook
WORKDIR /tmp
RUN wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
RUN python2 get-pip.py
RUN python2 -m pip install tensorflow==1.7.0 keras==2.1.6 opencv-python==3.4.8.29 numpy scipy matplotlib pydot graphviz grpcio==1.29.0 markdown==2.6.11 scikit-image
RUN python3 -m pip install notebook
RUN python2 -m pip install ipykernel
RUN python2 -m ipykernel install --user
# Copy project files
WORKDIR /src
COPY ./src /src
# Launch Jupyter Notebook
EXPOSE 8888
CMD ["python3", "-m", "notebook", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--IdentityProvider.token=''", "--allow-root"]