Spaces:
Runtime error
Runtime error
Shriraj Kulkarni commited on
Commit ·
8940bff
1
Parent(s): 659fcfe
Add application file
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9
|
| 2 |
+
|
| 3 |
+
RUN pip install joblib
|
| 4 |
+
RUN pip install python-multipart
|
| 5 |
+
|
| 6 |
+
WORKDIR /app
|
| 7 |
+
|
| 8 |
+
COPY requirements.txt /app
|
| 9 |
+
|
| 10 |
+
# Upgrade pip and install Python packages
|
| 11 |
+
RUN pip3 install --upgrade pip && \
|
| 12 |
+
pip3 install --no-cache-dir -r requirements.txt
|
| 13 |
+
|
| 14 |
+
COPY . /app
|
| 15 |
+
|
| 16 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|