Mariem-Daha commited on
Commit
21f86e8
·
verified ·
1 Parent(s): 9aaec2c

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -39
Dockerfile DELETED
@@ -1,39 +0,0 @@
1
- # Use Python 3.11 slim image
2
- FROM python:3.11-slim
3
-
4
- # Set working directory
5
- WORKDIR /app
6
-
7
- # Install system dependencies
8
- RUN apt-get update && apt-get install -y \
9
- gcc \
10
- g++ \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
- # Copy requirements first for better caching
14
- COPY Backend/requirements.txt .
15
-
16
- # Install Python dependencies
17
- RUN pip install --no-cache-dir -r requirements.txt
18
-
19
- # Copy backend code
20
- COPY Backend/ ./backend/
21
-
22
- # Copy frontend assets
23
- COPY frontend/mobile/assets/ ./frontend/
24
-
25
- # Create a simple HTTP server for frontend
26
- RUN pip install aiofiles
27
-
28
- # Create a combined FastAPI app that serves both API and frontend
29
- COPY app.py .
30
-
31
- # Expose port (Hugging Face Spaces will set PORT environment variable)
32
- EXPOSE 7860
33
-
34
- # Set environment variables
35
- ENV PYTHONPATH=/app
36
- ENV DATABASE_URL=sqlite:///./chefcode.db
37
-
38
- # Run the application
39
- CMD ["python", "app.py"]