From 0ccae97a5ceba4cc9bfcbf81419b31540157f1b4 Mon Sep 17 00:00:00 2001 From: Benjamin Bolte Date: Mon, 20 May 2024 21:10:55 -0700 Subject: [PATCH] buildx -> build, periods to slashes --- .github/workflows/deploy.yml | 2 +- docker/Dockerfile | 2 +- docker/build.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8630a2db..53456a27 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -66,7 +66,7 @@ jobs: ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }} IMAGE_TAG: latest run: | - docker build --platform linux/amd64 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f docker/Dockerfile . + docker buildx build --platform linux/amd64 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f docker/Dockerfile . docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG - name: Update Lambda function to use new Docker image diff --git a/docker/Dockerfile b/docker/Dockerfile index 540f0f16..fe084f40 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -15,4 +15,4 @@ RUN pip install --no-cache-dir . # RUN python -m pytest # Runs the application. -CMD ["store.app.aws.handler"] +CMD ["store/app/aws.handler"] diff --git a/docker/build.sh b/docker/build.sh index 6475ecd1..aad6dbfb 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -12,4 +12,4 @@ if [[ ! -f "store/requirements.txt" ]]; then fi # Builds the API Docker image. -docker build --platform linux/amd64 -t kscale-store -f docker/Dockerfile . +docker buildx build --platform linux/amd64 -t kscale-store -f docker/Dockerfile .