File size: 548 Bytes
14afd56
 
 
 
 
 
 
 
 
aae5d2b
14afd56
 
 
 
 
 
 
23f6c76
 
 
14afd56
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM node:16

# Set the working directory inside the container
WORKDIR /usr/src/app

# Copy package.json and package-lock.json (if available) to the working directory
COPY package*.json ./

# Install application dependencies
RUN npm install && npm install -g nodemon

# Copy the rest of the application to the working directory
COPY . .

# Expose the port the app runs on
EXPOSE 5000

# Change permissions for the 'public' directory to allow write access
RUN chmod -R 777 /usr/src/app/public

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