chat-nface / frontend /Dockerfile
zack
feat: update Dockerfile and index page \U0001F4DD
3629bf4
raw
history blame
404 Bytes
# Specify the base image
FROM node:alpine
# Set the working directory in the container
WORKDIR /app
# Copy package.json and package-lock.json
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"]