jupyter_gpu/tensorflow/Dockerfile
2024-08-02 21:22:46 +00:00

41 lines
995 B
Docker

# Use the official TensorFlow image with GPU support
FROM tensorflow/tensorflow:latest-gpu-jupyter
# Install necessary packages
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# RUN useradd -m -s /bin/bash oleg
RUN mkdir -p /workspace/tf_cache
# Install packages
RUN pip install jupyterlab
RUN pip install pandas
RUN pip install numpy
RUN pip install plotly
RUN pip install seaborn
RUN pip install statsmodels
RUN pip install scikit-learn
RUN pip install Arch
RUN pip install Quantlib
RUN pip install Backtrader
RUN pip install pyfolio
RUN pip install XGBoost
# Install additional applications
RUN apt update
RUN apt-get install graphviz -y
# Set the working directory
WORKDIR /workspace
# Expose the port for JupyterLab
EXPOSE ${JUPYTER_PORT}
# Command to run JupyterLab
CMD ["sh", "-c", "jupyter lab --ip=0.0.0.0 --port=9999 --allow-root --no-browser --NotebookApp.token=''"]