Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
#
|
| 18 |
-
|
|
|
|
| 19 |
|
| 20 |
-
|
| 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"]
|