File size: 368 Bytes
44f12da
 
3ffd178
44f12da
 
3ffd178
 
 
 
44f12da
 
320d6fe
 
 
3ffd178
44f12da
3ffd178
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:18

# Create app directory with root permissions
WORKDIR /usr/src/app

# Install necessary packages
RUN npm install --save express ws

# Copy the rest of the application files
COPY . .

# Set permissions for the working directory
RUN chmod -R 777 /usr/src/app

# Expose the WebSocket port
EXPOSE 7860

# Run the application as root
CMD ["node", "server.js"]