java-tutorials/docker-modules/docker-images/files-outside-context/projects/sample-site/docker/build-docker.sh

7 lines
187 B
Bash

mkdir tmp-context
cp -R ../html tmp-context/
cp -R ../../config tmp-context/
cp Dockerfile-script tmp-context/Dockerfile
docker build -t sample-site:latest tmp-context
rm -rf tmp-context