Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -17,10 +17,11 @@ RUN apt-get update && apt-get install -y \
|
|
17 |
COPY . /app
|
18 |
|
19 |
# Install Python Dependencies
|
20 |
-
RUN pip install --no-cache-dir -
|
|
|
21 |
|
22 |
# Expose Port (Optional)
|
23 |
EXPOSE 8000
|
24 |
|
25 |
# Run the Application
|
26 |
-
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
17 |
COPY . /app
|
18 |
|
19 |
# Install Python Dependencies
|
20 |
+
RUN pip install --no-cache-dir pip -U && \
|
21 |
+
pip install --no-cache-dir -r requirements.txt
|
22 |
|
23 |
# Expose Port (Optional)
|
24 |
EXPOSE 8000
|
25 |
|
26 |
# Run the Application
|
27 |
+
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]
|