Spaces:
Build error
Build error
add dockerfile
Browse files- Dockerfile +16 -0
- requirements.txt +12 -0
Dockerfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM continuumio/miniconda3
|
| 2 |
+
|
| 3 |
+
WORKDIR /home/app
|
| 4 |
+
|
| 5 |
+
RUN apt-get update -y
|
| 6 |
+
RUN apt-get install nano unzip
|
| 7 |
+
RUN apt install curl -y
|
| 8 |
+
|
| 9 |
+
RUN curl -fsSL https://get.deta.dev/cli.sh | sh
|
| 10 |
+
|
| 11 |
+
COPY requirements.txt /dependencies/requirements.txt
|
| 12 |
+
RUN pip install -r /dependencies/requirements.txt
|
| 13 |
+
|
| 14 |
+
COPY . /home/app
|
| 15 |
+
|
| 16 |
+
CMD gunicorn app:app --bind 0.0.0.0:$PORT --worker-class uvicorn.workers.UvicornWorker --timeout 120
|
requirements.txt
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fastapi
|
| 2 |
+
uvicorn[standard]
|
| 3 |
+
pydantic
|
| 4 |
+
typing
|
| 5 |
+
pandas
|
| 6 |
+
gunicorn
|
| 7 |
+
openpyxl
|
| 8 |
+
mlflow
|
| 9 |
+
boto3
|
| 10 |
+
scikit-learn
|
| 11 |
+
python-multipart
|
| 12 |
+
tensorflow
|