+ add dockerfile

master
io42630 3 years ago
parent 3f33089923
commit 7dd54064a7

@ -0,0 +1,7 @@
FROM node:16.15-buster-slim
WORKDIR /app
COPY . /app
RUN npm install && npm install -g tsc --force && npm install -g typescript --force
RUN tsc -b
CMD npm run start
EXPOSE 8081

@ -36,8 +36,7 @@
### How To Run ### How To Run
* enter API-keys into `keys-template.json`, then rename to `keys.json`. * enter API-keys into `keys-template.json`, then rename to `keys.json`.
* `npm run build / start` * see `Dockerfile`
* in Telegram : add bot > enable inline > /start > use via inline.
### Special Thanks ### Special Thanks

@ -8,12 +8,12 @@
"serve": "node dist/bot-adapter.js" "serve": "node dist/bot-adapter.js"
}, },
"dependencies": { "dependencies": {
"@types/node": "^18.0.0",
"@types/node-telegram-bot-api": "^0.57.0",
"deepl-node": "^1.3.1", "deepl-node": "^1.3.1",
"node-telegram-bot-api": "^0.57.0", "node-telegram-bot-api": "^0.57.0",
"tsc": "^2.0.4", "tsc": "^2.0.4",
"tslib": "^2.4.0", "tslib": "^2.4.0",
"typescript": "^4.7.4", "typescript": "^4.7.4"
"@types/node": "^18.0.0",
"@types/node-telegram-bot-api" : "^0.57.0"
} }
} }

Loading…
Cancel
Save