-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 718 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# OpenCortex
# Dockerfile
# Start with a lightweight Python image
FROM python:3.11-slim
# Install Tesseract OCR
RUN apt-get update && apt-get install -y tesseract-ocr
# Set the working directory inside the container
WORKDIR /app
# Install system dependencies needed for some Python libraries
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy only the requirements first (to use Docker's cache)
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the project files
COPY . .
# Expose the default Streamlit port
EXPOSE 8501
# Command to run the app
CMD ["streamlit", "run", "app.py"]