hair-colour / Dockerfile
Esteves Enzo
change permission
b5624f0
raw
history blame contribute delete
No virus
637 Bytes
# Dockerfile
# Use an official Node.js runtime as the base image
FROM node:18
# Set the working directory in the container
WORKDIR /usr/src/app
# Copy package.json and package-lock.json to the container
COPY package.json package-lock.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application files to the container
COPY . .
# Build the Next.js application for production
RUN npm run build
# Expose the application port (assuming your app runs on port 3000)
EXPOSE 3000
RUN mkdir -p /app/node_modules/@xenova/.cache/
RUN chmod 777 -R /app/node_modules/@xenova/
# Start the application
CMD ["npm", "start"]