hfacemko commited on
Commit
85a1854
·
verified ·
1 Parent(s): c4e27a9

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory in the container to /app
5
+ WORKDIR /app
6
+
7
+ # Clone the repository
8
+ RUN apt-get update && apt-get install -y git
9
+ RUN git clone https://github.com/KenKout/OCR-AI.git /app
10
+
11
+ # Install any needed packages specified in requirements.txt
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Add index.html to Streamlit folder
15
+ RUN mv static/index.html /usr/local/lib/python3.9/site-packages/streamlit/static/index.html
16
+
17
+ # Run app.py when the container launches
18
+ CMD ["python", "run.py"]