File size: 344 Bytes
b8a159b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 image
FROM node:18

# Set the working directory
WORKDIR /websocket

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

# Install dependencies
RUN npm install

# Copy the rest of the application code
COPY . .

# Expose the WebSocket port
EXPOSE 7860

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