KielTech commited on
Commit
6e4cf97
·
verified ·
1 Parent(s): 1940516

Upload Dockerfile (5)

Browse files
Files changed (1) hide show
  1. Dockerfile (5) +18 -0
Dockerfile (5) ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ # Install unzip to handle zipped model
9
+ RUN apt-get update && apt-get install -y unzip
10
+
11
+ COPY . .
12
+
13
+ # Unzip the model directory
14
+ RUN unzip keras_model_savedmodel.zip -d /app && rm keras_model_savedmodel.zip
15
+
16
+ EXPOSE 8000
17
+
18
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]