Create Dockerfile
Browse files12345678910111213141516171819202122# Dockerfile# Use an official Node.js runtime as the base imageFROM node:22.1.0USER root
RUN apt-get updateUSER 1000WORKDIR /usr/src/app# Copy package.json and package-lock.json to the containerCOPY --chown=1000 package.json package-lock.json ./
# Copy the rest of the application files to the containerCOPY --chown=1000 . .
RUN npm installRUN npm run build
# Expose the application port (assuming your app runs on port 3000)EXPOSE 5173
# Start the applicationCMD ["npm", "start"]DockerfileAdded+22