Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Commit

Permalink
Prima versione del dockerfile e dello script
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzodeinegri committed Apr 10, 2020
1 parent d714bde commit 739d127
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
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"]
11 changes: 11 additions & 0 deletions start.sh
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..."

0 comments on commit 739d127

Please sign in to comment.