File size: 438 Bytes
63c7991
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fda98aa
 
 
63c7991
 
 
 
fda98aa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use Node 22 as the base image
FROM node:22-alpine

# Set the working directory inside the container
WORKDIR /app

# Copy package.json and package-lock.json (if you have one)
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy the rest of the application code
COPY . .

# Build the app
RUN npm run build

# Expose the port your React app runs on
EXPOSE 7860

# Command to run the application
CMD ["npm", "run", "start"]