File size: 387 Bytes
04a901a
 
45b9bf0
 
 
 
04a901a
 
 
45b9bf0
04a901a
 
45b9bf0
d9191ca
 
36790de
447b213
 
 
d9191ca
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use a specific version of the node image
FROM node:16-alpine

# Set working directory
WORKDIR /code

# Copy package.json and package-lock.json and install dependencies
COPY package*.json ./
RUN npm install --production

# Copy the rest of the application files
COPY . .

# Expose port
EXPOSE 7860

# Set user to non-root
USER node

# Start Node.js application
CMD ["node", "index.js"]