parent
8a6c7da0a9
commit
ca1806aa1d
|
@ -0,0 +1,19 @@
|
|||
FROM continuumio/anaconda3
|
||||
|
||||
WORKDIR /usr/src/project
|
||||
COPY . /usr/src/project
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y \
|
||||
|
||||
&& apt-get install -y \
|
||||
libpq-dev \
|
||||
build-essential \
|
||||
git \
|
||||
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
|
||||
&& conda install -y -c conda-forge tensorflow=1.0.0 \
|
||||
&& conda install -y -c conda-forge jupyter_contrib_nbextensions \
|
||||
|
||||
&& jupyter contrib nbextension install --user \
|
||||
&& jupyter nbextension enable toc2/main
|
|
@ -0,0 +1,17 @@
|
|||
version: "3"
|
||||
services:
|
||||
handson-ml:
|
||||
build:
|
||||
context: ../
|
||||
dockerfile: ./docker/Dockerfile
|
||||
container_name: handson-ml
|
||||
image: handson-ml
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 50m
|
||||
ports:
|
||||
- "8888:8888"
|
||||
volumes:
|
||||
- ../:/usr/src/project
|
||||
command: /opt/conda/bin/jupyter notebook --ip='*' --port=8888 --no-browser --allow-root
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
help:
|
||||
cat Makefile
|
||||
run:
|
||||
docker-compose up
|
||||
exec:
|
||||
docker-compose exec -ti hondson-ml /bin/bash
|
||||
build: stop .FORCE
|
||||
docker-compose build --force-rm
|
||||
stop:
|
||||
docker stop handson-ml || true
|
||||
.FORCE:
|
Loading…
Reference in New Issue