CoolFace
Apppublic

personal-bot/unknown

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
Dockerfile31 linesDownload Raw Back to root
1FROM quay.io/suhailtechinfo/suhail-v22 3# Clone the repository4RUN git clone https://github.com/SuhailTechInfo/suhail-whatsapp-bot /home/suhail5 6# Change ownership of the directory to the 'node' user7RUN chown -R node:node /home/suhail8 9# Switch to the 'node' user10USER node11 12# Set the working directory13WORKDIR /home/suhail14 15# Copy the server.js file into the working directory16COPY server.js .17 18# Install dependencies19RUN npm install || yarn install20 21# Create the start.sh script directly22RUN echo '#!/bin/sh\nnode server.js &\nnpm start' > start.sh23 24# Make the start.sh script executable25RUN chmod +x start.sh26 27# Expose the port28EXPOSE 800029 30# Run the start.sh script31CMD ./start.sh