Commit b9ae38d2 authored by Muhammad Suleman's avatar Muhammad Suleman

Added Dockerfile

parent 95c8768d
# Use a lightweight Node.js image
FROM node:14-alpine
# Set the working directory
WORKDIR /app
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
# Install dependencies
RUN npm install --no-optional
# Copy the entire application
COPY . .
# Build the React application
RUN npm run build
# Expose the React application port (if needed)
EXPOSE 3000
# Run the React application
CMD ["npm", "start"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment