Skip to content

Commit

Permalink
fix : dockerfile, deploy-main 스크립트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jiji-hoon96 committed Aug 11, 2024
1 parent 2a6f543 commit 33ffbec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 6.0.2

- name: Generate pnpm-lock.yaml
run: pnpm install --lockfile-only

- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ RUN npm install -g pnpm

WORKDIR /usr/src/app

COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY package.json ./

RUN pnpm install --no-lockfile

COPY . .

Expand Down

0 comments on commit 33ffbec

Please sign in to comment.