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

Commit

Permalink
Merge pull request #25 from RedRoundRobin/feature/Dockerfile
Browse files Browse the repository at this point in the history
Feature/dockerfile
  • Loading branch information
lorenzodeinegri committed Apr 11, 2020
2 parents d714bde + a5d82ea commit 5cd330a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BOT_TOKEN=1120382460:AAGy8CdhjdMxaS99K3za1Jxoqp-ayPuVC1w
9 changes: 1 addition & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
node_modules
.DS_Store
.env

.idea
target/
out/
coverage/
*.iws
*.iml
*.ipr

Icon

Icon

.env
Icon
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 3000
WORKDIR /usr/src/telegram
CMD ["sh", "start.sh"]
7 changes: 7 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

npm install --production

node main.js

echo "Telegram bot started..."

0 comments on commit 5cd330a

Please sign in to comment.