anaconda -> data_science (build image w/o anaconda crap, just pip)

This commit is contained in:
Chris
2022-11-06 09:29:56 +01:00
parent 39c6567e39
commit 9e4f08d550
4 changed files with 10 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
NOTEBOOKS_PATH=~/code/jupyter_notebooks
JUPYTER_PORT=8888

1
data_science/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.env

15
data_science/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM python:3.9
EXPOSE 8888
RUN mkdir -p /opt/notebooks
RUN pip install\
jupyter\
matplotlib\
numpy\
pandas\
sklearn\
tensorflow
ENTRYPOINT ["jupyter", "notebook", "--notebook-dir=/opt/notebooks", "--ip='*'", "--port=8888", "--allow-root", "--NotebookApp.token=''"]

View File

@@ -0,0 +1,10 @@
version: '3'
services:
anaconda:
build: .
restart: unless-stopped
ports:
- '${JUPYTER_PORT}:8888'
volumes:
- ${NOTEBOOKS_PATH}:/opt/notebooks