This repository has been archived by the owner on Jul 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prima versione del dockerfile e dello script
- Loading branch information
1 parent
d714bde
commit 739d127
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# docker run --run -d -p 9999:9999 rrr/api | ||
FROM node:12.16.2-alpine3.11 | ||
COPY . /usr/src/telegram | ||
EXPOSE 9999 | ||
WORKDIR /usr/src/telegram | ||
CMD ["sh", "start.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
npm update | ||
|
||
npm install --production | ||
|
||
# TODO: add BOT_TOKEN | ||
|
||
node main.js | ||
|
||
echo "Telegram bot started..." |