This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Yancey1989/builddockerimage3_yx
Delete unused cache directory
- Loading branch information
Showing
1 changed file
with
3 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,6 @@ | |
cur_path="$(cd "$(dirname "$0")" && pwd -P)" | ||
cd $cur_path/../ | ||
|
||
#check cache data | ||
cache_data_path=.cache/paddle/dataset | ||
if [ ${COPY_CACHE_DATA} ] && [ ! -d $cache_data_path ]; then | ||
echo 2>&1 "Check the cache_data_path:${cache_data_path}" | ||
exit 1 | ||
fi | ||
|
||
#convert md to ipynb | ||
.tools/convert-markdown-into-ipynb-and-test.sh | ||
|
||
|
@@ -28,6 +21,9 @@ cat > ./build/Dockerfile << EOF | |
FROM paddlepaddle/paddle:${paddle_tag} | ||
MAINTAINER PaddlePaddle Authors <[email protected]> | ||
COPY . /book | ||
RUN python /book/.tools/cache_dataset.py | ||
RUN ${update_mirror_cmd} | ||
apt-get update && \ | ||
apt-get install -y locales && \ | ||
|
@@ -36,8 +32,6 @@ RUN ${update_mirror_cmd} | |
localedef -f UTF-8 -i en_US en_US.UTF-8 && \ | ||
pip install -U matplotlib jupyter numpy requests scipy | ||
COPY . /book | ||
RUN python /book/.tools/cache_dataset.py | ||
EXPOSE 8888 | ||
CMD ["sh", "-c", "jupyter notebook --ip=0.0.0.0 --no-browser --NotebookApp.token='' --NotebookApp.disable_check_xsrf=True /book/"] | ||
EOF | ||
|