diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index fc4b8dfa..5922b00b 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -35,9 +35,8 @@ jobs: - name: Build and Push Docker Image for ARM64 uses: docker/build-push-action@v2 with: - context: ./apps/next-app + context: ./ file: ./apps/next-app/Dockerfile push: true tags: jamessoun93/feedoong-frontend:latest platforms: linux/arm64/v8 - \ No newline at end of file diff --git a/.gitignore b/.gitignore index 6bbadc73..b52ba154 100644 --- a/.gitignore +++ b/.gitignore @@ -48,4 +48,3 @@ next-env.d.ts !.yarn/releases !.yarn/sdks !.yarn/versions - diff --git a/apps/next-app/Dockerfile b/apps/next-app/Dockerfile index a787ad85..4472ebd2 100644 --- a/apps/next-app/Dockerfile +++ b/apps/next-app/Dockerfile @@ -1,16 +1,17 @@ -FROM node:16.18.0-alpine +FROM node:20-alpine WORKDIR /app -COPY package* yarn.lock .pnp* ./ +COPY ./apps/next-app/package* ./ +COPY yarn.lock .pnp* ./ COPY .yarnrc.yml ./ COPY .yarn .yarn -RUN yarn install --immutable +RUN yarn install -COPY . . +COPY ./apps/next-app . -RUN yarn build +RUN yarn build EXPOSE 3000