bsbsbsn commited on
Commit
daa0a2f
·
verified ·
1 Parent(s): 034e6df

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Gunakan Node.js base image
2
+ FROM node:18-alpine
3
+
4
+ # Install git untuk cloning repository
5
+ RUN apk add --no-cache git
6
+
7
+ # Set working directory
8
+ WORKDIR /app
9
+
10
+ # Clone repository dari GitHub
11
+ RUN git clone https://github.com/siputzx/simpel-cors-proxy.git .
12
+
13
+ # Install dependencies
14
+ RUN npm install
15
+
16
+ # Expose port (Hugging Face menggunakan port 7860 secara default)
17
+ EXPOSE 7860
18
+
19
+ # Set environment variable untuk port
20
+ ENV PORT=7860
21
+
22
+ # Start the application
23
+ CMD ["npm", "start"]