Skip to content

Read Dockerfile from stdin #7502

@wangkuiyi

Description

@wangkuiyi

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions