Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9
|
| 2 |
+
|
| 3 |
+
WORKDIR /code
|
| 4 |
+
|
| 5 |
+
COPY requirements.txt .
|
| 6 |
+
RUN pip install -r requirements.txt
|
| 7 |
+
|
| 8 |
+
COPY ./app ./app
|
| 9 |
+
COPY ./frontend ./frontend
|
| 10 |
+
|
| 11 |
+
# Install uvicorn and Gradio
|
| 12 |
+
RUN pip install fastapi uvicorn gradio
|
| 13 |
+
|
| 14 |
+
CMD uvicorn app.main:app --host 0.0.0.0 --port 8000 & python frontend/app.py
|