mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-23 19:12:03 -05:00
Merge pull request #719 from alphagov/use-wheels-to-speed-as-deployment
Move wheel dependency installation to docker build
This commit is contained in:
3
Makefile
3
Makefile
@@ -64,11 +64,10 @@ 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
|
||||
|
||||
.PHONY: build-codedeploy-artifact
|
||||
build-codedeploy-artifact: ## Build the deploy artifact for CodeDeploy
|
||||
pip3 install wheel
|
||||
pip3 wheel --wheel-dir=wheelhouse -r requirements.txt
|
||||
mkdir -p target
|
||||
zip -r -x@deploy-exclude.lst target/notifications-api.zip *
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ RUN \
|
||||
echo "Install global pip packages" \
|
||||
&& pip install \
|
||||
virtualenv \
|
||||
awscli
|
||||
awscli \
|
||||
wheel
|
||||
|
||||
WORKDIR /var/project
|
||||
|
||||
Reference in New Issue
Block a user