web
1FROM node:16-alpine
2
3# Set working directory
4WORKDIR /app
5
6# Install dependencies
7COPY package.json yarn.lock ./
8RUN yarn install --frozen-lockfile
9
10# Copy the rest of the application
11COPY . .
12
13# Build the Next.js application
14RUN yarn build
15
16# Expose port 3000
17EXPOSE 3000
18
19# Start the application
20CMD ["yarn", "start"]
21