Commit 7e1ca920 authored by Administrator's avatar Administrator

Update Dockerfile

parent 583999ef
Pipeline #45 failed with stages
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 http://root:ahmadX09@git.fcfglobal.co/root/telegram-bot-ping.git \ COPY ./telegram-bot-ping /telegram-bot-ping
&& cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime \ RUN cd telegram-bot-ping \
&& echo "Asia/Tehran" > /etc/timezone \
&& cd telegram-bot-ping \
&& npm install \ && npm install \
&& npm isntall -g pm2 && npm isntall -g pm2
EXPOSE 3000 EXPOSE 3000
WORKDIR /telegram-bot-ping WORKDIR /telegram-bot-ping
CMD ["pm2-runtime","acc.json"] CMD ["pm2-runtime","ping.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