Dhruva P Gowda commited on
Commit
d801307
·
1 Parent(s): 7e33fdb

Fix Render build context: Move Dockerfile to root

Browse files
Files changed (2) hide show
  1. Dockerfile +19 -0
  2. render.yaml +1 -1
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y gcc g++ && rm -rf /var/lib/apt/lists/*
7
+
8
+ # Copy backend requirements and install
9
+ COPY backend/requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # Copy the entire project (backend, ingestion, data, etc.)
13
+ COPY . .
14
+
15
+ # Set environment variables
16
+ ENV PORT=8080
17
+
18
+ # Run the unified backend application
19
+ CMD ["sh", "-c", "uvicorn backend.app.main:app --host 0.0.0.0 --port ${PORT}"]
render.yaml CHANGED
@@ -6,7 +6,7 @@ services:
6
  plan: free
7
  healthCheckPath: /healthz
8
  rootDir: .
9
- dockerFilePath: backend/Dockerfile
10
  envVars:
11
  - key: GEMINI_API_KEY
12
  sync: false
 
6
  plan: free
7
  healthCheckPath: /healthz
8
  rootDir: .
9
+ dockerFilePath: Dockerfile
10
  envVars:
11
  - key: GEMINI_API_KEY
12
  sync: false