How can I scrape code from the Dockerfile?

  console-scraping, dockerfile, git, javascript, node.js

I have an app running on Heroku. I don’t want anyone to copy my repo. So ı want to put if to main file from Dockerfile.

Here is my Dockerfile:

FROM fu***/wha****:latest

RUN git clone https://github.com/phaticusthiccy/WhatsAsenaDuplicated/ root/WhatsAsenaDuplicated
WORKDIR /root/WhatsAsenaDuplicated/
ENV TZ=Europe/Istanbul
RUN npm install deepai
RUN npm install supervisor -g
RUN npm install

CMD ["node", "bot.js"]

Bot can be cloned if the change "RUN git clone"

So ı want to scrape this line and add to bot.js
Using if / else

if (xxx == 'phaticusthiccy/WhatsAsenaDuplicated') {
...

And

}
else {
...

How can I do that? What should I add where it says xxx?

Source: Dockerfile Questions

LEAVE A COMMENT