Spaces:
Sleeping
Sleeping
Dhruva P Gowda commited on
Commit ·
4c96781
1
Parent(s): e53bb90
Fix Render build: copy entire context before running pip install
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
|
@@ -5,12 +5,11 @@ WORKDIR /app
|
|
| 5 |
# Install system dependencies
|
| 6 |
RUN apt-get update && apt-get install -y gcc g++ && rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
-
# Copy
|
| 9 |
-
COPY
|
| 10 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 11 |
|
| 12 |
-
#
|
| 13 |
-
|
| 14 |
|
| 15 |
# Set environment variables
|
| 16 |
ENV PORT=8080
|
|
|
|
| 5 |
# Install system dependencies
|
| 6 |
RUN apt-get update && apt-get install -y gcc g++ && rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
+
# Copy the entire project first to avoid path resolution issues in Render's builder
|
| 9 |
+
COPY . /app
|
|
|
|
| 10 |
|
| 11 |
+
# Install dependencies from the copied backend folder
|
| 12 |
+
RUN pip install --no-cache-dir -r backend/requirements.txt
|
| 13 |
|
| 14 |
# Set environment variables
|
| 15 |
ENV PORT=8080
|