abubasith86 commited on
Commit
57ec957
·
verified ·
1 Parent(s): 4571c74

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -11,14 +11,13 @@ WORKDIR /app
11
  # Clone your GitHub project
12
  RUN git clone https://github.com/mohamedabubasith/logs-hook.git .
13
 
14
- # Install Python dependencies
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
- # Server Configuration (optional)
18
- EXPOSE 8000
 
19
 
20
- # CORS Origins (for production, specify your frontend domain)
21
  ENV CORS_ORIGINS=http://localhost:3000,http://localhost:5173,https://your-frontend-domain.com
22
 
23
- # Default command to run your app
24
  CMD ["python", "main.py"]
 
11
  # Clone your GitHub project
12
  RUN git clone https://github.com/mohamedabubasith/logs-hook.git .
13
 
 
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
+ # ensure writable data dir
17
+ RUN mkdir -p /data
18
+ ENV DB_PATH=/data/events.sqlite
19
 
20
+ EXPOSE 8000
21
  ENV CORS_ORIGINS=http://localhost:3000,http://localhost:5173,https://your-frontend-domain.com
22
 
 
23
  CMD ["python", "main.py"]