Deadmon commited on
Commit
0b42f07
·
verified ·
1 Parent(s): c238c1b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -5
Dockerfile CHANGED
@@ -1,11 +1,19 @@
1
- FROM python:3.10-slim
 
2
 
 
3
  WORKDIR /app
4
 
5
- COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt
 
 
6
 
7
- COPY . .
 
 
8
 
9
- EXPOSE 7860 7861
 
10
 
11
- CMD ["python", "app.py"]
 
 
1
+ # Use the official Python slim image to keep the image size small
2
+ FROM python:3.11-slim
3
 
4
+ # Set working directory
5
  WORKDIR /app
6
 
7
+ # Copy the webhook handler script and other necessary files
8
+ COPY webhook_handler.py .
9
+ COPY requirements.txt .
10
 
11
+ # Install dependencies
12
+ RUN pip install --no-cache-dir -r requirements.txt && \
13
+ pip install --no-cache-dir requests
14
 
15
+ # Expose the port the webhook server will run on
16
+ EXPOSE 8000
17
 
18
+ # Command to run the webhook handler
19
+ CMD ["python", "webhook_handler.py"]