Asmitha3 commited on
Commit
0e6c4e3
·
verified ·
1 Parent(s): 56a71e8

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Start from a stable Python image
2
+ FROM python:3.8-slim
3
+
4
+ # Install system dependencies (for unzip)
5
+ RUN apt-get update && apt-get install -y unzip
6
+
7
+ # Set the working directory
8
+ WORKDIR /app
9
+
10
+ # Install all necessary Python libraries (including all specific versions and gradio)
11
+ RUN pip install tensorflow==2.13.1 mediapipe==0.10.11 opencv-python scikit-learn numpy gradio
12
+
13
+ # Copy the trained model to the /tmp directory where app.py looks for it
14
+ COPY sign_language_model.h5 /tmp/sign_language_model.h5
15
+
16
+ # Copy the final application script to the working directory
17
+ COPY app.py .
18
+
19
+ # Command to run your final application interface
20
+ CMD ["python", "app.py"]