Commit b8755f6e authored by Victor Nikulshin's avatar Victor Nikulshin
Browse files

Use fabfile/Dockerfile to build Docker image

parent 10db8314
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)))