Rapidfireop commited on
Commit
6a09d76
·
verified ·
1 Parent(s): 3207586

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Node.js as the base image
2
+ FROM node:20
3
+
4
+ # Install git to clone the repo
5
+ RUN apt-get update && apt-get install -y git
6
+
7
+ # Create app directory
8
+ WORKDIR /app
9
+
10
+ # Clone the Puter repository
11
+ RUN git clone https://github.com/HeyPuter/puter.git .
12
+
13
+ # Install dependencies
14
+ RUN npm install
15
+
16
+ # Puter usually runs on port 4000/443.
17
+ # We need to force it to 7860 for Hugging Face compatibility.
18
+ ENV PORT=7860
19
+
20
+ # Expose the port
21
+ EXPOSE 7860
22
+
23
+ # Start Puter
24
+ CMD ["npm", "start"]