- Use Markdown lint to adhere to Markdown rules.
- Use best practices:
- Docker's Best practices for writing Dockerfiles.
- Project Atomic's Container Best practices.
- Use "lint" when applicable.
-
Online linter: FROM: latest
-
GitHub projectatomic/dockerfile_lint using Docker
sudo docker run -it \ --rm \ --privileged \ --volume $PWD:/root/ \ projectatomic/dockerfile-lint \ dockerfile_lint -f Dockerfile
-
Note: Linters may erroneously report "ARG before FROM" which is supported as of Enterprise Edition 17.06.01 and Community Edition 17.05.0.
-
-
Modifications:
-
Change following value to appropriate Docker tag.
DOCKER_IMAGE_NAME := senzing/template
-
-
Use
make docker-build-baseoccasionally to populate the Docker image cache with layers that change infrequently. -
Once a "base" has been created, use
make docker-buildto build during development and make final builds.
- Modifications:
-
Change following value to appropriate Git repository name.
export GIT_REPOSITORY=template-docker
-