Explorar o código

Добавлен docker-compose

Denis V. Dedkov hai 1 ano
pai
achega
89b02c1a6a
Modificáronse 2 ficheiros con 18 adicións e 3 borrados
  1. 2 3
      jupyter-ext/Dockerfile
  2. 16 0
      jupyter-ext/docker-compose.yml

+ 2 - 3
jupyter-ext/Dockerfile

@@ -1,6 +1,5 @@
 FROM dm.dended.ru/jupyter/base-notebook
 
-ENV PIP_PACKAGE xlrd pandas_ta pandas-datareader mplfinance bokeh plotly textgrad openai tqdm scikit-learn
+ENV PIP_PACKAGE xlrd pandas_ta pandas-datareader mplfinance bokeh plotly textgrad openai tqdm scikit-learn ipywidgets
 
-RUN pip3 --no-cache-dir install ${PIP_PACKAGE} \
-    && rm -rf /var/cache/apk/*
+RUN pip3 --no-cache-dir install ${PIP_PACKAGE} 

+ 16 - 0
jupyter-ext/docker-compose.yml

@@ -0,0 +1,16 @@
+version: "3.7"
+
+services:
+    jupyter:
+        container_name: jupyter
+        image: docker.dended.ru/jupyter:latest
+        build:
+            context: .
+            dockerfile: ./Dockerfile
+            network: host
+        ports:
+            - 8888:8888
+        volumes:
+            - ~/:/home/jovyan/work
+        restart: always
+        command: "start-notebook.sh --NotebookApp.token=''"