kamiwork commited on
Commit
e934913
·
verified ·
1 Parent(s): 445d230

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TraffMonetizer ki Alpine-based image use karein
2
+ FROM traffmonetizer/cli_v2:latest
3
+
4
+ # Alpine pe Node.js aur npm install karein
5
+ RUN apk add --no-cache nodejs npm
6
+
7
+ WORKDIR /app
8
+
9
+ # Apna Express app copy karein
10
+ COPY package.json index.js ./
11
+ RUN npm install --omit=dev
12
+
13
+ EXPOSE 10000
14
+
15
+ # Dono processes ko run karein. '&' se background aur 'exec' se foreground process sahi rahega.
16
+ CMD ["sh", "-c", "start accept --token $TOKEN & exec node index.js"]