Spaces:
Runtime error
Runtime error
Upload Flask backend files
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
# Use a slim Python base image
|
| 2 |
FROM python:3.9-slim
|
| 3 |
|
|
@@ -7,6 +9,9 @@ WORKDIR /app
|
|
| 7 |
# Copy all project files to the container
|
| 8 |
COPY . .
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
|
|
|
| 1 |
+
# Inside backend_files/Dockerfile
|
| 2 |
+
|
| 3 |
# Use a slim Python base image
|
| 4 |
FROM python:3.9-slim
|
| 5 |
|
|
|
|
| 9 |
# Copy all project files to the container
|
| 10 |
COPY . .
|
| 11 |
|
| 12 |
+
# Just in case: ensure the nested folder is handled correctly
|
| 13 |
+
RUN mkdir -p deployment_files
|
| 14 |
+
|
| 15 |
# Install dependencies
|
| 16 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
|