Update Dockerfile
Browse files- Dockerfile +13 -5
Dockerfile
CHANGED
@@ -1,11 +1,19 @@
|
|
1 |
-
|
|
|
2 |
|
|
|
3 |
WORKDIR /app
|
4 |
|
5 |
-
|
|
|
|
|
6 |
|
7 |
-
|
|
|
|
|
8 |
|
9 |
-
|
|
|
10 |
|
11 |
-
|
|
|
|
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"]
|