Skip to content

Commit 53cbca5

Browse files
[CDAPI-95]: Swapped local lambda container build to depend on target directory instead of artifact.zip
1 parent 3fcc7d3 commit 53cbca5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ build: clean-artifacts dependencies
3737

3838
.PHONY: build-images
3939
build-images: build # Build the project artefact @Pipeline
40-
@mkdir infrastructure/images/pathology-api/resources/build/
41-
@cp pathology-api/target/artifact.zip infrastructure/images/pathology-api/resources/build/
42-
@mkdir infrastructure/images/pathology-api/resources/build/pathology-api
43-
@unzip infrastructure/images/pathology-api/resources/build/artifact.zip -d infrastructure/images/pathology-api/resources/build/pathology-api
40+
@mkdir -p infrastructure/images/pathology-api/resources/build
41+
@cp -r pathology-api/target/pathology-api infrastructure/images/pathology-api/resources/build
4442

4543
@echo "Building Docker image using Docker. Utilising python version: ${PYTHON_VERSION} ..."
4644
@$(docker) buildx build --load --platform=linux/amd64 --provenance=false --build-arg PYTHON_VERSION=${PYTHON_VERSION} -t localhost/pathology-api-image infrastructure/images/pathology-api

0 commit comments

Comments
 (0)