Skip to content

Commit

Permalink
Added animated sticker support & updated Dockerfile
Browse files Browse the repository at this point in the history
- Added animated sticker support
- Updated Dockerfile
- Heroku build method changed
  • Loading branch information
tuhinpal committed Mar 23, 2021
1 parent 393abd8 commit a8bfa14
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 18 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
node_modules/
package-lock.json
npm
.eslintcache
session.json
.cache/
26 changes: 14 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
FROM node:latest
FROM ubuntu:latest

RUN apt-get update \
&& apt-get install -y wget gnupg ca-certificates \
RUN apt update \
&& apt install -y wget gnupg ca-certificates \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-stable \
&& rm -rf /var/lib/apt/lists/* \
&& wget --quiet https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh -O /usr/sbin/wait-for-it.sh \
&& chmod +x /usr/sbin/wait-for-it.sh
&& apt update \
&& apt install -y google-chrome-stable \

RUN apt install software-properties-common -y
RUN add-apt-repository ppa:savoury1/ffmpeg4
RUN apt update
RUN apt install ffmpeg -y
RUN apt install npm -y

WORKDIR /app
COPY package.json /app
RUN npm install
COPY . /app
CMD node main.js
EXPOSE 8080
RUN npm install
CMD ["npm", "start"]
EXPOSE 8080
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

7 changes: 2 additions & 5 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"whatsapp-userbot",
"whatsapp"
],
"stack": "container",
"env": {
"SESSION": {
"description": "Puppeteer Session. Get it by running genToken.js",
Expand Down Expand Up @@ -39,9 +40,5 @@
"description": "If true & if someone delete message in PM, Bot will send the deleted message in that chat (Exclude Media)",
"value": "true"
}
},
"buildpacks": [
{ "url": "heroku/nodejs" },
{ "url": "https://buildpack-registry.s3.amazonaws.com/buildpacks/jontewks/puppeteer.tgz" }
]
}
}
3 changes: 3 additions & 0 deletions heroku.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build:
docker:
web: Dockerfile

0 comments on commit a8bfa14

Please sign in to comment.