kamiwork commited on
Commit
67772b9
Β·
verified Β·
1 Parent(s): 7f20532

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -12
Dockerfile CHANGED
@@ -1,23 +1,18 @@
1
  FROM traffmonetizer/cli_v2:latest
2
 
3
- # Install Node.js
4
  RUN apk add --no-cache nodejs npm
5
 
6
  WORKDIR /app
7
-
8
- # Copy package.json and index.js
9
  COPY package.json index.js ./
10
-
11
- # Install Express
12
  RUN npm install --omit=dev
13
 
14
  EXPOSE 7860
15
 
16
- # Run with better logging
17
- CMD ["sh", "-c", "
18
- echo 'πŸš€ Starting TraffMonetizer...'
19
- start accept --token $TOKEN &
20
- echo 'βœ… TraffMonetizer started in background'
21
- echo 'πŸš€ Starting Express server...'
22
- exec node index.js
23
  "]
 
1
  FROM traffmonetizer/cli_v2:latest
2
 
 
3
  RUN apk add --no-cache nodejs npm
4
 
5
  WORKDIR /app
 
 
6
  COPY package.json index.js ./
 
 
7
  RUN npm install --omit=dev
8
 
9
  EXPOSE 7860
10
 
11
+ # Using backslash for multi-line (works in Docker)
12
+ CMD ["sh", "-c", "\
13
+ echo 'πŸš€ Starting TraffMonetizer...' && \
14
+ start accept --token $TOKEN & \
15
+ echo 'βœ… TraffMonetizer started in background' && \
16
+ echo 'πŸš€ Starting Express server...' && \
17
+ exec node index.js \
18
  "]