Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!requirements.txt
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM jupyter/tensorflow-notebook

MAINTAINER Denley Hsiao <[email protected]>

ARG APP_DIR=/app/
USER root

RUN mkdir -p $APP_DIR
COPY requirements.txt $APP_DIR
WORKDIR $APP_DIR
USER jovyan

RUN pip install -r requirements.txt

EXPOSE 8888
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
14. [DeepDream](https://zhuanlan.zhihu.com/p/27546601) ([Notebook](https://github.com/thrillerist/TensorFlow-Tutorials/blob/master/14_DeepDream_zh_CN.ipynb))
15. [风格迁移](https://zhuanlan.zhihu.com/p/27697553) ([Notebook](https://github.com/thrillerist/TensorFlow-Tutorials/blob/master/15_Style_Transfer_zh_CN.ipynb))

## 使用
1. 在安装了docker-compose的终端执行:`docker-compose up`
2. 在浏览器中打开日志中最后打印出的网址,如`http://localhost:8888/?token=1c267204f7e6e244f39ab866d7c25ac4ef3e7aecc1bc7ddc`
3. 按`CTRL + C`停止运行


***

[Original repository on GitHub](https://github.com/Hvass-Labs/TensorFlow-Tutorials)
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: "3"
services:
app:
build: .
command: jupyter notebook
volumes:
- .:/app/
ports:
- "8888:8888"