Unverified Commit 302c4f85 authored by Ahmad Nemati's avatar Ahmad Nemati Committed by GitHub

Update Dockerfile

parent 61365240
FROM node:alpine 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/Telegram-Bot-Ping.git \ RUN git clone https://github.com/AhmadNemati/so.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 Telegram-Bot-Ping \ && cd so \
&& npm install \ && npm install \
&& npm isntall -g pm2 && npm isntall -g pm2
EXPOSE 3000 EXPOSE 1010
WORKDIR /Telegram-Bot-Ping WORKDIR /so
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