From d3175dc980eba62025a945a853f5672ec3d4fe2a Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 24 Oct 2021 02:55:46 +0100 Subject: [PATCH] Revert "build(docker): build and push with Compose" This reverts commit bf9f9d5fa1099f5d8a4561392d941704b2b20e65. --- run | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/run b/run index 52f498e5..b043b64a 100755 --- a/run +++ b/run @@ -21,13 +21,16 @@ function deploy { } function docker:build-images { - docker-compose build --file docker-compose-production.yaml - DOCKER_TAG=latest docker-compose build --file docker-compose-production.yaml + docker image build . \ + --file tools/docker/images/Dockerfile \ + --tag ${DOCKER_WEB_IMAGE_NAME}:${DOCKER_TAG} \ + --tag ${DOCKER_WEB_IMAGE_NAME}:latest \ + --target=production } function docker:push-images { - docker-compose push --file docker-compose-production.yaml - DOCKER_TAG=latest docker-compose push --file docker-compose-production.yaml + docker image push ${DOCKER_WEB_IMAGE_NAME}:${DOCKER_TAG} + docker image push ${DOCKER_WEB_IMAGE_NAME}:latest } function help {