Skip to content

Commit 3f1f9d9

Browse files
Marfuentofikwest
andauthored
chore(api): simplify docker build command in buildspec (#1936)
Co-authored-by: Tofik Hasanov <[email protected]>
1 parent 56aebbf commit 3f1f9d9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

apps/api/buildspec.multistage.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ phases:
1515
commands:
1616
- echo "Building Docker image with multi-stage build..."
1717
- cd apps/api
18-
- docker build \
19-
--build-arg BUILDKIT_INLINE_CACHE=1 \
20-
--target production \
21-
-f Dockerfile.multistage \
22-
-t $ECR_REPOSITORY_URI:$IMAGE_TAG \
23-
../..
18+
- docker build --build-arg BUILDKIT_INLINE_CACHE=1 --target production -f Dockerfile.multistage -t $ECR_REPOSITORY_URI:$IMAGE_TAG ../..
2419
- docker tag $ECR_REPOSITORY_URI:$IMAGE_TAG $ECR_REPOSITORY_URI:latest
2520

2621
post_build:

0 commit comments

Comments
 (0)