ValakiJay1706 commited on
Commit
c0673c0
·
verified ·
1 Parent(s): ad0ecc7

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.9-slim
3
+
4
+ # Install Tesseract
5
+ RUN apt-get update && apt-get install -y \
6
+ tesseract-ocr \
7
+ libtesseract-dev \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Set the working directory
11
+ WORKDIR /app
12
+
13
+ # Copy the current directory contents into the container at /app
14
+ COPY . /app
15
+
16
+ # Install any needed packages specified in requirements.txt
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Make port 8501 available to the world outside this container
20
+ EXPOSE 8501
21
+
22
+ # Run streamlit when the container launches
23
+ CMD ["streamlit", "run", "app.py"]