Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files- Dockerfile +26 -0
- requirements.txt +10 -0
Dockerfile
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM continuumio/miniconda3
|
| 2 |
+
|
| 3 |
+
WORKDIR /home/app
|
| 4 |
+
|
| 5 |
+
RUN apt-get update
|
| 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 |
+
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
|
| 12 |
+
RUN unzip awscliv2.zip
|
| 13 |
+
RUN ./aws/install
|
| 14 |
+
|
| 15 |
+
COPY requirements.txt /dependencies/requirements.txt
|
| 16 |
+
RUN pip install -r /dependencies/requirements.txt
|
| 17 |
+
|
| 18 |
+
ENV AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
|
| 19 |
+
ENV AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
|
| 20 |
+
ENV BACKEND_STORE_URI=$BACKEND_STORE_URI
|
| 21 |
+
ENV ARTIFACT_STORE_URI=$ARTIFACT_STORE_URI
|
| 22 |
+
|
| 23 |
+
CMD mlflow server -p $PORT \
|
| 24 |
+
--host 0.0.0.0 \
|
| 25 |
+
--backend-store-uri $BACKEND_STORE_URI \
|
| 26 |
+
--default-artifact-root $ARTIFACT_STORE_URI
|
requirements.txt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
boto3
|
| 2 |
+
pandas
|
| 3 |
+
gunicorn
|
| 4 |
+
streamlit
|
| 5 |
+
scikit-learn
|
| 6 |
+
matplotlib
|
| 7 |
+
seaborn
|
| 8 |
+
plotly
|
| 9 |
+
mlflow
|
| 10 |
+
psycopg2-binary
|