mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Merge pull request #478 from pre-commit/docker_build_old_docker
Put the `.` in docker build at the end.
This commit is contained in:
commit
6e2373ff43
1 changed files with 3 additions and 1 deletions
|
|
@ -43,12 +43,14 @@ def build_docker_image(repo_cmd_runner, **kwargs): # pragma: windows no cover
|
|||
pull = kwargs.pop('pull')
|
||||
assert not kwargs, kwargs
|
||||
cmd = (
|
||||
'docker', 'build', '.',
|
||||
'docker', 'build',
|
||||
'--tag', docker_tag(repo_cmd_runner),
|
||||
'--label', PRE_COMMIT_LABEL,
|
||||
)
|
||||
if pull:
|
||||
cmd += ('--pull',)
|
||||
# This must come last for old versions of docker. See #477
|
||||
cmd += ('.',)
|
||||
helpers.run_setup_cmd(repo_cmd_runner, cmd)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue