Olivier-52 commited on
Commit
6a75f43
·
1 Parent(s): c0472b4

init repo

Browse files
Files changed (2) hide show
  1. Dockerfile +28 -0
  2. requirements.txt +7 -0
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ WORKDIR /home/app
4
+
5
+ RUN apt-get update \
6
+ && apt-get install -y --no-install-recommends nano unzip curl \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ COPY . .
10
+
11
+ RUN curl -fsSL https://get.deta.dev/cli.sh | sh
12
+
13
+ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
14
+ RUN unzip awscliv2.zip
15
+ RUN ./aws/install
16
+
17
+ COPY requirements.txt /dependencies/requirements.txt
18
+ RUN pip install -r /dependencies/requirements.txt
19
+
20
+ ENV AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
21
+ ENV AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
22
+ ENV BACKEND_STORE_URI=$BACKEND_STORE_URI
23
+ ENV ARTIFACT_STORE_URI=$ARTIFACT_STORE_URI
24
+
25
+ CMD mlflow server -p $PORT \
26
+ --host 0.0.0.0 \
27
+ --backend-store-uri $BACKEND_STORE_URI \
28
+ --default-artifact-root $ARTIFACT_STORE_URI
requirements.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ boto3
2
+ mlflow==2.21.3
3
+ scikit-learn==1.4.2
4
+ requests>=2.31.0,<3
5
+ pandas
6
+ gunicorn
7
+ psycopg2-binary