react app

This commit is contained in:
akshay m
2026-03-09 09:56:18 +05:30
commit 6dfa6588cb
24 changed files with 19181 additions and 0 deletions

23
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
# Use the official Node.js 20 image as the base image
FROM node:20
# Set the working directory in the container
WORKDIR /app
# Copy the package.json and package-lock.json files to the container
COPY package*.json ./
# Install the dependencies
RUN npm install
# Copy the rest of the application's source code to the container
COPY . .
# Build the React.js application
RUN npm run build
# Expose the port that the application listens on
EXPOSE 3001
# Start a simple web server to serve the built React.js files
CMD [ "npx", "serve", "-s", "build" ]