Skip to content

Commit

Permalink
Merge pull request #36 from aerostitch/move_args_to_cmd
Browse files Browse the repository at this point in the history
Move flags to CMD to allow changing file name
  • Loading branch information
rnagy committed Aug 10, 2017
2 parents bbb7165 + a90f80f commit 519849f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ MAINTAINER Red Cool Beans <maintainer@redcoolbeans.com>
RUN npm install -g dockerlint \
&& npm cache clean

ENTRYPOINT ["dockerlint", "-f", "/Dockerfile"]
ENTRYPOINT ["dockerlint"]
CMD [ "-f", "/Dockerfile"]
3 changes: 2 additions & 1 deletion Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ RUN npm install -g coffee-script \
&& npm install -g \
&& npm cache clean

ENTRYPOINT ["dockerlint", "-f", "/Dockerfile"]
ENTRYPOINT ["dockerlint"]
ENTRYPOINT ["-f", "/Dockerfile"]

This comment has been minimized.

Copy link
@EvgenyOrekhov

EvgenyOrekhov Aug 18, 2017

Shouldn't it be CMD instead of ENTRYPOINT?

0 comments on commit 519849f

Please sign in to comment.