FROM node:alpine
RUN  apk add --update && apk add git tzdata 
RUN git clone https://github.com/AhmadNemati/Telegram-Bot-Ping.git \
    && cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime \
    && echo "Asia/Tehran" > /etc/timezone \
    && cd Telegram-Bot-Ping \
    && npm install \
    && npm isntall -g pm2 
EXPOSE 3000
WORKDIR /Telegram-Bot-Ping
CMD ["pm2-runtime","pm2.json"]
