Spaces:
Sleeping
Sleeping
Commit ·
156a3d9
1
Parent(s): 06a757a
add docker image and requirements for deployment
Browse files- Dockerfile +23 -0
- requirements.txt +3 -0
Dockerfile
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
CMD ["bash","-lc","mlflow server --host 0.0.0.0 --port ${PORT} \
|
| 19 |
+
--backend-store-uri ${BACKEND_STORE_URI} \
|
| 20 |
+
--default-artifact-root ${ARTIFACT_STORE_URI} \
|
| 21 |
+
--serve-artifacts \
|
| 22 |
+
--allowed-hosts ${MLFLOW_ALLOWED_HOSTS} \
|
| 23 |
+
--cors-allowed-origins ${MLFLOW_CORS_ALLOWED_ORIGINS}"]
|
requirements.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mlflow==2.16.1
|
| 2 |
+
psycopg2-binary==2.9.9
|
| 3 |
+
boto3==1.35.36
|