### Ignoring Files During Docker Build
Greetings & welcome back to our next adventure! As the Radar Board (the official SpaceBones government tech team) works towards implementing a true CI/CD environment, there have been reports of random files, directories & other “errata” interrupting the Docker automation process.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create `.dockerignore`
Student should edit the included
.dockerignore
file under~/content-dockerquest-spacebones/salt-example/salt-master/
to ignore the following:badscript.sh
,README.md
and allconf
files..dockerignore:
badscript.sh *.conf README.md
- Build the Docker Image
Student should create a new Docker image named
salt-master:deb
viadocker build -t salt-master:deb .
From within the directory containing the Dockerfile