File size: 514 Bytes
03395a4 7144a22 03395a4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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"] |