File size: 455 Bytes
44f12da
 
3ffd178
44f12da
 
3ffd178
94a31d2
8108cdd
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
21
22
23
24
FROM node:18

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

# Copy package files and install dependencies
#COPY package*.json ./
#RUN npm install

# 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"]