Last active
August 25, 2018 12:22
-
-
Save spurti-chopra/553da6f0dad6cca3017a30268e1de81b to your computer and use it in GitHub Desktop.
This file contains 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
### Below is used for representation purpose and is not in any way a working Dockerfile. | |
### Build the artifact using Dockerfile.build | |
docker build -t artifact-build -f Dockerfile.build | |
### Create the container using the image to obtain artifact | |
docker create --name artifact-container artifact-build | |
### Copy the artifact from container to host machine | |
docker cp artifact-conatiner:<src_path_of_artifact> <host_machine_path> | |
### Make sure your Dockerfile has an instruction to copy the artifact from host_machine_path | |
docker build -t app-image -d Dockerfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment