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

Read Dockerfile from stdin #7502

Closed
wangkuiyi opened this issue Jan 13, 2018 · 1 comment
Closed

Read Dockerfile from stdin #7502

wangkuiyi opened this issue Jan 13, 2018 · 1 comment
Assignees

Comments

@wangkuiyi
Copy link
Collaborator

Currently, in tools/manylinux1/build_all.sh we have

docker build -t ${REPO}/paddle_manylinux_devel:cuda7.5_cudnn5 -f Dockerfile.tmp .
docker push ${REPO}/paddle_manylinux_devel:cuda7.5_cudnn5

This code snippet creates temporary Dockerfiles in /tmp. However, on some special environment, e.g., some managed VMs, we might not have permission to write to /tmp. A solution is to make docker build read the Dockerfile content from the stdin. For more details, please refer to https://docs.docker.com/engine/reference/commandline/build/. The shortcut is

docker build - < Dockerfile
@wangkuiyi
Copy link
Collaborator Author

wangkuiyi commented Jan 13, 2018

@wangkuiyi wangkuiyi self-assigned this Jan 13, 2018
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

No branches or pull requests

2 participants