mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-15 07:54:32 -05:00
Use python wheels to speed up deployments
This commit is contained in:
1
Makefile
1
Makefile
@@ -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
|
||||
|
||||
@@ -31,6 +31,7 @@ RUN \
|
||||
echo "Install global pip packages" \
|
||||
&& pip install \
|
||||
virtualenv \
|
||||
awscli
|
||||
awscli \
|
||||
wheel
|
||||
|
||||
WORKDIR /var/project
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user