Use python wheels to speed up deployments

This commit is contained in:
Imdad Ahad
2016-11-07 17:56:08 +00:00
parent edfa9d4382
commit 75854d91fc
3 changed files with 4 additions and 2 deletions

View File

@@ -67,6 +67,7 @@ generate-version-file: ## Generates the app version file
.PHONY: build
build: dependencies generate-version-file ## Build project
./venv/bin/pip-accel wheel --wheel-dir=wheelhouse -r requirements.txt
npm run build
.PHONY: build-codedeploy-artifact

View File

@@ -31,6 +31,7 @@ RUN \
echo "Install global pip packages" \
&& pip install \
virtualenv \
awscli
awscli \
wheel
WORKDIR /var/project

View File

@@ -2,4 +2,4 @@
echo "Install dependencies"
cd /home/notify-app/notifications-admin;
pip3 install -r /home/notify-app/notifications-admin/requirements.txt
pip3 install --find-links=wheelhouse -r /home/notify-app/notifications-admin/requirements.txt