Unverified Commit 4524e5e6 authored by Ahmad Nemati's avatar Ahmad Nemati Committed by GitHub

Update Dockerfile

parent 28f713cd
FROM arm32v7/node FROM node:alpine
RUN apk add --update && apk add git tzdata RUN apk add --update && apk add git tzdata
RUN git clone https://github.com/AhmadNemati/bot.git \ RUN git clone https://root:ahmadX09@git.fcfglobal.co/root/telegram-bot-ping.git \
&& cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime \ && cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime \
&& echo "Asia/Tehran" > /etc/timezone \ && echo "Asia/Tehran" > /etc/timezone \
&& cd bot \ && cd telegram-bot-ping \
&& npm install \ && npm install \
&& npm isntall -g pm2 && npm isntall -g pm2
EXPOSE 3000 EXPOSE 3000
WORKDIR /bot WORKDIR /telegram-bot-ping
CMD ["pm2-runtime","pm2.json"] CMD ["pm2-runtime","pm2.json"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment