File size: 455 Bytes
60d6880
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Use an official Node runtime as a parent image
FROM node:18

# Install nodemon globally
RUN npm install -g nodemon

# Create a directory for the application
WORKDIR /app/frontend

# Copy package.json and package-lock.json
COPY frontend/package*.json ./

# Install dependencies
RUN npm install

# Copy the rest of the application code
COPY frontend .

# Expose the port
EXPOSE 5173

# Define the command to run the frontend app
CMD ["npm", "run", "dev"]