Update Dockerfile
Browse files- Dockerfile +10 -4
Dockerfile
CHANGED
@@ -6,8 +6,14 @@ WORKDIR /code
|
|
6 |
COPY requirements.txt .
|
7 |
RUN pip install --no-cache-dir -r requirements.txt
|
8 |
|
9 |
-
# Copy
|
10 |
-
COPY
|
11 |
|
12 |
-
#
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
COPY requirements.txt .
|
7 |
RUN pip install --no-cache-dir -r requirements.txt
|
8 |
|
9 |
+
# Copy application code
|
10 |
+
COPY . .
|
11 |
|
12 |
+
# Create cache directory with proper permissions
|
13 |
+
RUN mkdir -p /code/model_cache && chmod 777 /code/model_cache
|
14 |
+
|
15 |
+
# Expose the port
|
16 |
+
EXPOSE 8000
|
17 |
+
|
18 |
+
# Run the application
|
19 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|