diff --git a/README.md b/README.md index 307f9c68..6d58a9e6 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,14 @@ These instructions have been tested on: - Ubuntu 18.04 - Windows 10 +## Running the course on Docker + +Run this command from terminal in course directory and copy Jupyter notebook url to browser after installation. + +``` +docker-compose up +``` + ## Running the course on Google Colaboratory with free GPU support Google offers a free platform to run Jupyter notebooks called Google Colaboratory. You need a Gmail or Google Apps email address to use it. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..7e9b81ae --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '2' + +services: + zero_to_deep_learning: + build: + context: . + dockerfile: dockerfile + + ports: + - 8888:8888 \ No newline at end of file diff --git a/dockerfile b/dockerfile new file mode 100644 index 00000000..c22bb665 --- /dev/null +++ b/dockerfile @@ -0,0 +1,14 @@ +FROM continuumio/miniconda3:latest + +ENTRYPOINT ["/bin/bash", "-c" ] + +RUN groupadd -r course -g 1000 && useradd -u 1000 -r -g course -m -d /course -s /sbin/nologin -c "Course user" course && \ + chmod 755 /course + +RUN git clone https://github.com/Dataweekends/zero_to_deep_learning_udemy /course/zero_to_deep_learning_udemy +WORKDIR /course/zero_to_deep_learning_udemy +RUN conda env create +RUN chown -R course:course . + +USER course +CMD ["source activate ztdl && jupyter notebook --ip='0.0.0.0' --port=8888 --no-browser"] \ No newline at end of file