FROM node:18 # Install git RUN apt-get update && apt-get install -y git # Set working directory WORKDIR /app # Clean /app in case anything is preexisting RUN rm -rf /app/* # Clone the full repository into /app RUN git clone https://github.com/ReirLair/him.git /app # Set full permissions (not recommended for production) RUN chmod -R 777 /app # Install dependencies if package.json exists RUN npm install mongodb node-cron express axios fs-extra uuid bcrypt cors # Start the server CMD ["node", "server.js"]