Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed May 21, 2024
1 parent 0ccae97 commit cd99a78
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
working-directory: frontend
run: |
npm install
- name: Build frontend
run: |
npm run build
working-directory: frontend

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

Expand All @@ -66,8 +66,7 @@ jobs:
ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }}
IMAGE_TAG: latest
run: |
docker buildx build --platform linux/amd64 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f docker/Dockerfile .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker buildx build --platform linux/amd64 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f docker/Dockerfile . --push
- name: Update Lambda function to use new Docker image
env:
Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ FROM public.ecr.aws/lambda/python:3.11

WORKDIR ${LAMBDA_TASK_ROOT}

# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED 1

# Installs the package in the container.
COPY . .
# RUN pip install --no-cache-dir '.[dev]'
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 buildx build --platform linux/amd64 -t kscale-store -f docker/Dockerfile .
docker build --platform linux/amd64 -t kscale-store -f docker/Dockerfile .

0 comments on commit cd99a78

Please sign in to comment.