Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renatomefi/b3d1cbba742a57c475c577409128f467 to your computer and use it in GitHub Desktop.
Save renatomefi/b3d1cbba742a57c475c577409128f467 to your computer and use it in GitHub Desktop.
FROM alpine:3.8
RUN my_repo = "http://myrepo.git" && cd /tmp && git clone $my_repo
$ docker run -v $(pwd):/project:ro --workdir=/project --rm -i hadolint/hadolint:latest-debian hadolint /project/Dockerfile
/project/Dockerfile:3 SC1068 Don't put spaces around the = in assignments.
/project/Dockerfile:3 DL3003 Use WORKDIR to switch to a directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment