the declarative language in a Dockerfile does not support conditional statements. One way of solving this can be to have an entrypoint.sh script (or run.sh, name does not matter) in your repository next to the Dockerfile which you copy into the image.
FROM fu***/wha****:latest
RUN git clone https://github.com/phaticusthiccy/WhatsAsenaDuplicated/ root/WhatsAsenaDuplicated
WORKDIR /root/WhatsAsenaDuplicated/
ENV TZ=Europe/Istanbul
ENV MYAPP_ENV="PROD"
COPY scripts/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN npm install deepai
RUN npm install supervisor -g
RUN npm install
CMD ["entrypoint.sh"]
You can parametrize the shell script with environment variables, setting the value to PROD from the outside, and execute commands based on that. Below is an untested example, bash syntax might not be a 100% correct.
scripts/entrypoint.sh
if [ "$MYAPP_ENV" == "PROD" ]; then
node bot.js
else
# something else to execute
fi