anaconda -> data_science (build image w/o anaconda crap, just pip)
This commit is contained in:
2
data_science/.env.template
Normal file
2
data_science/.env.template
Normal file
@@ -0,0 +1,2 @@
|
||||
NOTEBOOKS_PATH=~/code/jupyter_notebooks
|
||||
JUPYTER_PORT=8888
|
||||
1
data_science/.gitignore
vendored
Normal file
1
data_science/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.env
|
||||
15
data_science/Dockerfile
Normal file
15
data_science/Dockerfile
Normal 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=''"]
|
||||
10
data_science/docker-compose.yml
Normal file
10
data_science/docker-compose.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
anaconda:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- '${JUPYTER_PORT}:8888'
|
||||
volumes:
|
||||
- ${NOTEBOOKS_PATH}:/opt/notebooks
|
||||
Reference in New Issue
Block a user