Skip to content

Commit

Permalink
feat : add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pinetree2 committed Mar 29, 2024
1 parent c5c9907 commit 25aa1ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: yarn install
run: npm install

#ESLint 경고 무시
- name: Build
run: npm run build
run: npm run build

# Login to ghcr
- name: Login to ghcr
uses: docker/login-action@v1
with:
registry: ghcr.io
username: pinetree2
password: ${{ secrets.GHCR_TOKEN }}

# Docker 빌드 생성 및 푸시
- name: dev Docker build & push
if: contains(github.ref, 'main') || contains(github.ref, 'develop')
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ WORKDIR /app/frontend

COPY package*.json ./
RUN npm install
RUN yarn install

COPY . .

# 애플리케이션을 빌드합니다.
RUN npm run build

EXPOSE 3000
CMD ["npm", "start"]

0 comments on commit 25aa1ae

Please sign in to comment.