Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker improvements #257

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Wilfred
Copy link
Contributor

@Wilfred Wilfred commented Jul 28, 2017

This makes two changes to the Docker build:

  • It excludes the Dockerfile from the build process, so we can make changes to the Dockerfile and Docker uses its layer cache
  • It changes the container to run as a hound user rather than root, according to docker best practices. This also makes it possible to run the Hound container on an NFS mount with root squashing.

Wilfred added 2 commits July 28, 2017 13:46
Otherwise, any change to the Dockerfile invalidates the Docker cache,
and we re-run every step after `COPY .`.
Docker best practices discourage running as root:
https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#user
and it also enables Hound to run on a NFS share with root squashing.
Base automatically changed from master to main February 24, 2021 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants