Skip to content
This repository was archived by the owner on Jun 13, 2019. It is now read-only.

Commit 54debe4

Browse files
committed
Provide build_arg to docker in all cases
1 parent bbc49fc commit 54debe4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/mix_docker.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ defmodule MixDocker do
3232
end
3333

3434
with_dockerfile @dockerfile_build, fn ->
35-
docker :build, @dockerfile_build, image(:build), (if ip != nil, do: args ++ ["--build-arg", Keyword.fetch!(opts, :build_arg)], else: args)
35+
docker :build, @dockerfile_build, image(:build), (if Keyword.has_key?(opts, :build_arg), do: args ++ ["--build-arg", Keyword.fetch!(opts, :build_arg)], else: args)
3636
end
3737

3838
if ip != nil, do: Plug.Adapters.Cowboy.shutdown MixDocker.Plug.HTTP

0 commit comments

Comments
 (0)