diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 43d6d02..e457f7b 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -24,12 +24,12 @@ 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 @@ -37,7 +37,7 @@ jobs: registry: ghcr.io username: pinetree2 password: ${{ secrets.GHCR_TOKEN }} - + # Docker 빌드 생성 및 푸시 - name: dev Docker build & push if: contains(github.ref, 'main') || contains(github.ref, 'develop') diff --git a/Dockerfile b/Dockerfile index 1d37678..a1e91ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file