Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -10,14 +10,14 @@ RUN apt-get update && apt-get install -y \
|
|
10 |
&& rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
# Copy requirements first to leverage Docker cache
|
13 |
-
COPY
|
14 |
|
15 |
# Install Python dependencies
|
16 |
-
RUN pip install --no-cache-dir -r
|
17 |
|
18 |
-
# Copy the application code
|
19 |
COPY app /code/app
|
20 |
-
COPY
|
21 |
|
22 |
# Create models directory
|
23 |
RUN mkdir -p /code/models
|
|
|
10 |
&& rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
# Copy requirements first to leverage Docker cache
|
13 |
+
COPY requirements.txt requirements.txt
|
14 |
|
15 |
# Install Python dependencies
|
16 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
|
18 |
+
# Copy the application code
|
19 |
COPY app /code/app
|
20 |
+
COPY main.py .
|
21 |
|
22 |
# Create models directory
|
23 |
RUN mkdir -p /code/models
|