docker build -t $IMAGE_NAME - << EOF
FROM alpine:latest
...
EXPOSE 80
EOF
Created
December 22, 2016 08:35
-
-
Save jkullick/9c69f97edf295b6e964318fd8852570a to your computer and use it in GitHub Desktop.
Build Docker Image without Dockerfile
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that the docker build context in this case only contains the
Dockerfile
from STDIN. So it's not possible toCOPY
/ADD
files from the current working directory to the image.If you need files from the current working directory use this instead: