Last active
August 10, 2017 13:16
-
-
Save somatorio/92bda82e5e25f8294a98119118be2d8f to your computer and use it in GitHub Desktop.
Teste de docker image build com contexto em diretório anterior ao do Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.5 | |
RUN apk add --no-cache hunspell hunspell-pt-br hunspell-en | |
copy teste.txt /teste.txt | |
WORKDIR /workdir | |
ENTRYPOINT ["/usr/bin/hunspell"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\Users\somatorio\Desktop\teste\docker-hunspell> dir | |
Diretório: C:\Users\somatorio\Desktop\teste\docker-hunspell | |
Mode LastWriteTime Length Name | |
---- ------------- ------ ---- | |
-a---- 10/08/2017 10:00 164 Dockerfile | |
-a---- 10/08/2017 09:54 133 README.md | |
PS C:\Users\somatorio\Desktop\teste\docker-hunspell> dir ../ | |
Diretório: C:\Users\somatorio\Desktop\teste | |
Mode LastWriteTime Length Name | |
---- ------------- ------ ---- | |
d----- 10/08/2017 09:54 docker-hunspell | |
-a---- 10/08/2017 09:57 0 teste.txt | |
PS C:\Users\somatorio\Desktop\teste\docker-hunspell> docker image build ../ -f Dockerfile -t teste | |
Sending build context to Docker daemon 61.95kB | |
Step 1/5 : FROM alpine:3.5 | |
---> 074d602a59d7 | |
Step 2/5 : RUN apk add --no-cache hunspell hunspell-pt-br hunspell-en | |
---> Using cache | |
---> 0367df347fcb | |
Step 3/5 : COPY teste.txt /teste.txt | |
---> Using cache | |
---> cc0a44438f33 | |
Step 4/5 : WORKDIR /workdir | |
---> Using cache | |
---> 9a185a686e30 | |
Step 5/5 : ENTRYPOINT /usr/bin/hunspell | |
---> Using cache | |
---> a7433795ea00 | |
Successfully built a7433795ea00 | |
Successfully tagged teste:latest | |
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories. | |
PS C:\Users\somatorio\Desktop\teste\docker-hunspell> docker run --rm -it --entrypoint /bin/ls teste / | |
bin home mnt run sys usr | |
dev lib proc sbin teste.txt var | |
etc media root srv tmp workdir | |
PS C:\Users\somatorio\Desktop\teste\docker-hunspell> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment