FROM node:18-alpine # Install necessary tools RUN apk --no-cache add git docker-cli bash rsync WORKDIR /app # Copy package.json COPY package.json . # Install dependencies RUN npm install express http crypto # Create logs directory RUN mkdir -p /app/logs # Make deployment script executable COPY webhook-deploy.sh . RUN chmod +x webhook-deploy.sh # Copy webhook receiver COPY webhook-receiver.js . # Expose webhook port EXPOSE 9000 # Start the webhook receiver CMD ["node", "webhook-receiver.js"]