diff --git a/run b/run index b043b64ac..52f498e59 100755 --- a/run +++ b/run @@ -21,16 +21,13 @@ function deploy { } function docker:build-images { - docker image build . \ - --file tools/docker/images/Dockerfile \ - --tag ${DOCKER_WEB_IMAGE_NAME}:${DOCKER_TAG} \ - --tag ${DOCKER_WEB_IMAGE_NAME}:latest \ - --target=production + docker-compose build --file docker-compose-production.yaml + DOCKER_TAG=latest docker-compose build --file docker-compose-production.yaml } function docker:push-images { - docker image push ${DOCKER_WEB_IMAGE_NAME}:${DOCKER_TAG} - docker image push ${DOCKER_WEB_IMAGE_NAME}:latest + docker-compose push --file docker-compose-production.yaml + DOCKER_TAG=latest docker-compose push --file docker-compose-production.yaml } function help {