Skip to content

Commit f8474bc

Browse files
author
Uttam Singh
committed
Fix: add proper requirements.txt and update Dockerfile
1 parent bbd3d2f commit f8474bc

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

backend/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
FROM python:3.11-slim
2-
ENV PYTHONDONTWRITEBYTECODE=1
3-
ENV PYTHONUNBUFFERED=1
2+
43
WORKDIR /app
54

65
RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/*
76

8-
COPY requirements.txt .
7+
# Copy requirements.txt from backend folder (Render context fix)
8+
COPY backend/requirements.txt ./requirements.txt
9+
910
RUN pip install --no-cache-dir -r requirements.txt
1011

11-
COPY . /app
12+
# Copy the rest of the backend code
13+
COPY backend/. .
1214

13-
EXPOSE 8000
1415
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

backend/requirements.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
fastapi==0.115.0
2+
uvicorn==0.30.6
3+
sqlalchemy==2.0.32
4+
psycopg2-binary==2.9.9
5+
python-dotenv==1.0.1
6+
pydantic==2.9.2
7+
pydantic-settings==2.6.1
8+
passlib[bcrypt]==1.7.4
9+
python-multipart==0.0.9
10+
requests==2.32.3
11+
apscheduler==3.10.4
12+
email-validator==2.2.0
13+
openai==1.51.2
14+
pandas==2.2.3
15+
openpyxl==3.1.5

render.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
services:
2-
# === Backend (FastAPI + Docker) ===
32
- type: web
43
name: fat-eibl-backend
54
env: docker

0 commit comments

Comments
 (0)