File size: 530 Bytes
b3b53dd
 
f9f0fec
b3b53dd
 
 
 
 
f9f0fec
b3b53dd
f9f0fec
b3b53dd
 
 
 
 
 
 
 
 
 
 
 
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 the official Node.js 16 image as a parent image
FROM node:16

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

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

# Install any dependencies
RUN npm install

# Copy the rest of your application's code
COPY . .

# Make sure the public directory exists (if your app depends on it)
RUN mkdir -p ./public

# Your application's default port, expose it if necessary
EXPOSE 7860

# Command to run your app
CMD ["node", "index.mjs"]