add Dockerfile
This commit is contained in:
		
							
								
								
									
										20
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
# Use an official Node.js runtime as a base
 | 
			
		||||
FROM node:20-alpine
 | 
			
		||||
 | 
			
		||||
# Create app directory
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
 | 
			
		||||
RUN apk add python3
 | 
			
		||||
 | 
			
		||||
# Copy package.json and install dependencies
 | 
			
		||||
COPY package*.json ./
 | 
			
		||||
RUN npm install --omit=dev
 | 
			
		||||
 | 
			
		||||
# Copy the rest of the app
 | 
			
		||||
COPY . .
 | 
			
		||||
 | 
			
		||||
# Make the script executable
 | 
			
		||||
RUN chmod +x cli.js
 | 
			
		||||
RUN chmod +x watcher.py
 | 
			
		||||
 | 
			
		||||
ENTRYPOINT /app/watcher.py
 | 
			
		||||
		Reference in New Issue
	
	Block a user