deployment methods - new and docs
This commit is contained in:
28
_deploy/webhook/Dockerfile
Normal file
28
_deploy/webhook/Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user