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"]

View File

@ -0,0 +1,13 @@
{
"name": "mwitnessing-webhook",
"version": "1.0.0",
"description": "Webhook receiver for automatic deployments",
"main": "webhook-receiver.js",
"scripts": {
"start": "node webhook-receiver.js"
},
"dependencies": {
"express": "^4.18.2",
"crypto": "^1.0.1"
}
}