deployment methods - new and docs

This commit is contained in:
Dobromir Popov
2025-04-10 03:02:30 +03:00
parent fe96003eee
commit 0d3914f3c6
10 changed files with 1010 additions and 0 deletions

View File

@ -0,0 +1,28 @@
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"]