-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: [FOLIO-3] Replace yarn with npm for dependency management#2
- Loading branch information
1 parent
54465c5
commit ad1046c
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
# Use an official Node.js image. | ||
# Node.js의 경량 버전을 베이스 이미지로 사용합니다. | ||
FROM node:20-alpine | ||
|
||
# Set the working directory inside the container. | ||
# 앱 디렉토리를 생성하고, 작업 디렉토리로 설정합니다. | ||
WORKDIR /app | ||
|
||
# Copy package.json and yarn.lock files. | ||
# package.json과 package-lock.json을 복사합니다. | ||
COPY package.json package-lock.json ./ | ||
|
||
# Install dependencies. | ||
RUN yarn install | ||
# 의존성을 설치합니다. --legacy-peer-deps 옵션은 필요시 사용할 수 있습니다. | ||
RUN npm install --legacy-peer-deps | ||
|
||
# Copy the rest of the application code. | ||
# 소스 코드를 모두 복사합니다. | ||
COPY . . | ||
|
||
# Build the Next.js application. | ||
RUN yarn build | ||
# 빌드를 수행합니다. | ||
RUN npm run build | ||
|
||
# Expose the port the app runs on. | ||
# 애플리케이션 포트를 노출합니다. | ||
EXPOSE 3000 | ||
|
||
# Start the application. | ||
# 앱을 시작하는 명령어입니다. | ||
CMD ["npm", "start"] |