Skip to content

Instantly share code, notes, and snippets.

@lmakarov
Last active June 30, 2017 17:26
Show Gist options
  • Save lmakarov/5cbeecf56e5579000edeecc11458da43 to your computer and use it in GitHub Desktop.
Save lmakarov/5cbeecf56e5579000edeecc11458da43 to your computer and use it in GitHub Desktop.
Showcases moby/moby#6119
FROM httpd:alpine
COPY 100MB.zip /usr/local/apache2/htdocs/
$ docker build -t myhttpd .
Sending build context to Docker daemon  104.9MB
Step 1/2 : FROM httpd:alpine as chmod
 ---> 8014d2ecbd73
Step 2/2 : COPY 100MB.zip /usr/local/apache2/htdocs/
 ---> 43a63837255a
Removing intermediate container d067956e4b80
Successfully built 43a63837255a
Successfully tagged myhttpd:latest

$ docker image ls
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
myhttpd             latest              29172fbda220        2 minutes ago       191MB
httpd               alpine              8014d2ecbd73        2 days ago          86.4MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment