Commit b8755f6e authored by Victor Nikulshin's avatar Victor Nikulshin

Use fabfile/Dockerfile to build Docker image

parent 10db8314
......@@ -129,7 +129,8 @@ def image_create():
if '{}/drupal'.format(env.project_name) in docker_images():
print(red('Docker image {}/drupal was found, you has already build this image'.format(env.project_name)))
else:
local('docker build -t {}/drupal .'.format(env.project_name))
dockerfile = h.fab_path('Dockerfile')
local('docker build -t {}/drupal -f {} .'.format(env.project_name, dockerfile))
print(green('Docker image {}/drupal was build successful'.format(env.project_name)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment