abubasith86 commited on
Commit
c98b65e
·
verified ·
1 Parent(s): 8c32bac

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile CHANGED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a lightweight Python base image
2
+ FROM python:3.13-slim AS builder
3
+
4
+ # Install git so we can clone the repo
5
+ RUN apt-get update && apt-get install -y git --no-install-recommends \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ # Set working directory
9
+ WORKDIR /app
10
+
11
+ # Clone your GitHub project
12
+ RUN git clone https://github.com/mohamedabubasith/logs-hook.git .
13
+
14
+ # Move into the 'backend' directory
15
+ WORKDIR /app/backend
16
+
17
+ # Install Python dependencies
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Server Configuration (optional)
21
+ EXPOSE 8000
22
+
23
+ # CORS Origins (for production, specify your frontend domain)
24
+ ENV CORS_ORIGINS=http://localhost:3000,http://localhost:5173,https://your-frontend-domain.com
25
+
26
+ # Default command to run your app
27
+ CMD ["python", "main.py"]