Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build #1661

Merged
merged 1 commit into from
Mar 22, 2017
Merged

Docker build #1661

merged 1 commit into from
Mar 22, 2017

Conversation

helinwang
Copy link
Contributor

@helinwang helinwang commented Mar 21, 2017

Fixes: #1655

RUN dpkg --force-all -i /usr/local/opt/paddle/deb/*.deb && rm -f /usr/local/opt/paddle/deb/*.deb
ADD build/*.deb /usr/local/opt/paddle/deb/
ADD build/py_paddle*linux*.whl /usr/local/opt/paddle/share/wheels/
ADD build/paddle*.whl /usr/local/opt/paddle/share/wheels/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这三个ADD没必要哈,因为deb文件中已经包含了paddle python的库了。下面执行paddle version会自动安装

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Removed last two, I think the first one is necessary.

ADD build/paddle*.whl /usr/local/opt/paddle/share/wheels/

# run paddle version to install python packages first
RUN dpkg -i /usr/local/opt/paddle/deb/*.deb && rm -f /usr/local/opt/paddle/deb/*.deb && paddle version

ENV PATH="/usr/local/opt/paddle/bin/:${PATH}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个ENV也可以去掉了paddle 会安装在/usr/bin下

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@helinwang helinwang changed the title Docker build WIP Docker build Mar 21, 2017
Copy link
Contributor

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wangkuiyi wangkuiyi mentioned this pull request Mar 21, 2017
@helinwang helinwang merged commit 4db0471 into PaddlePaddle:develop Mar 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants