chat-nface / frontend /Dockerfile
zack
build: update Dockerfile to use Node.js 18.17.0 📦
8db5596
raw
history blame
463 Bytes
# Use Node.js version 18 as the base image
FROM node:18.17.0
# Set the working directory in the container
WORKDIR /app
# Copy package.json and package-lock.json (or yarn.lock) to the working directory
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of your application code
COPY . .
# Build your Next.js application
RUN npm run build
# Expose the port your app runs on
EXPOSE 3000
# Command to run your app
CMD ["npm", "start"]