Skip to content

Commit

Permalink
docker updates
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed May 21, 2024
1 parent 583a8a2 commit 96c5173
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }}
IMAGE_TAG: latest
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f docker/Dockerfile .
docker 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
Expand Down
4 changes: 1 addition & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

FROM public.ecr.aws/lambda/python:3.11

WORKDIR /app

# Installs the package in the container.
ADD . /app
ADD . ${LAMBDA_TASK_ROOT}
RUN pip install --no-cache-dir .

# Runs the application.
Expand Down
2 changes: 1 addition & 1 deletion docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ if [[ ! -f "store/requirements.txt" ]]; then
fi

# Builds the API Docker image.
docker build -t kscale-store -f docker/Dockerfile .
docker build --platform linux/amd64 -t kscale-store -f docker/Dockerfile .

0 comments on commit 96c5173

Please sign in to comment.