Reduce the size of the production container image

This commit is contained in:
Matthew Jones
2017-08-22 09:02:32 -04:00
parent d39c70d9f2
commit 6e4d886ea4
3 changed files with 11 additions and 14 deletions

View File

@@ -608,9 +608,3 @@ psql-container:
VERSION:
echo $(VERSION_TARGET) > $@
production-openshift-image: sdist
cat installer/openshift/Dockerfile | sed "s/{{ version }}/$(VERSION_TARGET)/g" | sed "s/{{ tar }}/$(SDIST_TAR_FILE)/g" > ./Dockerfile.production
cp installer/openshift/Dockerfile.celery ./Dockerfile.celery.production
docker build -t awx_web -f ./Dockerfile.production .
docker build -t awx_task -f ./Dockerfile.celery.production .