txtorg commited on
Commit
c6fb635
·
verified ·
1 Parent(s): c2c05f9

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Node.js image
2
+ FROM node:18
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ RUN npm install express
8
+
9
+ # Copy the rest of the app files
10
+ COPY . .
11
+
12
+ # Ensure codes.json exists and set proper permissions
13
+ RUN touch codes.json && echo '{}' > codes.json && chmod 666 codes.json
14
+
15
+ # Expose port 3000
16
+ EXPOSE 7860
17
+
18
+ # Start the server
19
+ CMD ["node", "server.js"]