File size: 542 Bytes
06b59f8
 
387e432
06b59f8
f140cee
387e432
06b59f8
 
387e432
06b59f8
 
387e432
06b59f8
387e432
 
06b59f8
e9f3ea8
387e432
06b59f8
387e432
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use the official Node.js 16 image as a parent image
FROM node:16

# Set the working directory inside the container to /app
WORKDIR /app

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

# Install project dependencies inside the container
RUN npm install

# Copy the rest of your application's source code from your host to your image filesystem.
COPY . .

# Make port 7860 available to the world outside this container
EXPOSE 7860

# Command to run your app using Node.js
CMD ["node", "server.js"]