# Create a Dockerfile for nextjs app
# TARGETPLATFORM

# Use the official Node.js image as the base image
FROM node:18
# Set the working directory inside the container
WORKDIR /app
# Copy the package.json and package-lock.json files to the working directory
COPY package*.json ./
# Install the dependencies
RUN npm install
# Copy the rest of the application code to the working directory
COPY . .
# Build the Next.js app
RUN npm run build
# Expose the port that the Next.js app will run on
EXPOSE 3000
# Start the Next.js app
CMD ["npm", "start"]
