You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
378 B
23 lines
378 B
# Base image
|
|
FROM node:18-alpine
|
|
|
|
# Set working directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# Copy package.json and yarn.lock
|
|
COPY package.json yarn.lock ./
|
|
|
|
# Install dependencies
|
|
RUN yarn install
|
|
|
|
# Copy the rest of the application code
|
|
COPY . .
|
|
|
|
# Build the Next.js application
|
|
RUN yarn build
|
|
|
|
# Expose the port the app runs on
|
|
EXPOSE 3000
|
|
|
|
# Start the application
|
|
CMD ["yarn", "start"]
|