Update Dockerfile
Browse files- Dockerfile +1 -21
Dockerfile
CHANGED
|
@@ -1,22 +1,2 @@
|
|
| 1 |
FROM traffmonetizer/cli_v2:latest
|
| 2 |
-
|
| 3 |
-
RUN apk add --no-cache nodejs npm
|
| 4 |
-
|
| 5 |
-
WORKDIR /app
|
| 6 |
-
|
| 7 |
-
# Debug version of index.js
|
| 8 |
-
RUN echo "const express = require('express'); \
|
| 9 |
-
const app = express(); \
|
| 10 |
-
const port = 7860; \
|
| 11 |
-
console.log('DEBUG: Starting server on port', port); \
|
| 12 |
-
app.get('/', (req, res) => res.send('TEST')); \
|
| 13 |
-
app.listen(port, '0.0.0.0', () => console.log('DEBUG: Server started'));" > index.js
|
| 14 |
-
|
| 15 |
-
# Debug package.json
|
| 16 |
-
RUN echo '{"dependencies":{"express":"^4.18.2"}}' > package.json
|
| 17 |
-
|
| 18 |
-
RUN npm install --omit=dev
|
| 19 |
-
|
| 20 |
-
EXPOSE 7860
|
| 21 |
-
|
| 22 |
-
CMD ["sh", "-c", "echo 'DEBUG: TOKEN is set: '${TOKEN:+YES}'; start accept --token $TOKEN & node index.js"]
|
|
|
|
| 1 |
FROM traffmonetizer/cli_v2:latest
|
| 2 |
+
CMD start accept --token $TOKEN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|