kusatmer commited on
Commit
96c41f7
Β·
1 Parent(s): 9d09bf1

feat: Add Dockerfile for application containerization and update README to reflect Docker SDK.

Browse files
Files changed (2) hide show
  1. Dockerfile +23 -0
  2. README.md +1 -1
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ git \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Copy requirements first to leverage cache
11
+ COPY requirements.txt .
12
+
13
+ # Install Python dependencies
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy the rest of the application
17
+ COPY . .
18
+
19
+ # Expose the port Streamlit runs on
20
+ EXPOSE 8501
21
+
22
+ # Run the application
23
+ CMD ["streamlit", "run", "streamlit_app.py", "--server.address", "0.0.0.0", "--server.port", "7860"]
README.md CHANGED
@@ -3,7 +3,7 @@ title: Image Text Extractor
3
  emoji: πŸ“„
4
  colorFrom: blue
5
  colorTo: indigo
6
- sdk: streamlit
7
  sdk_version: 1.28.0
8
  app_file: streamlit_app.py
9
  pinned: false
 
3
  emoji: πŸ“„
4
  colorFrom: blue
5
  colorTo: indigo
6
+ sdk: docker
7
  sdk_version: 1.28.0
8
  app_file: streamlit_app.py
9
  pinned: false