-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 933 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (20 loc) · 933 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
# My Base Image
FROM python:3.11.5-slim-bookworm
# Set Working Directory in the image
WORKDIR /DocQna
# Copy Everything for dockerfile loc to -> /DocQna in image
COPY . .
# pip install dependencies
RUN apt-get update && apt-get install -y poppler-utils
RUN apt-get update && apt-get install -y tesseract-ocr-eng
RUN apt-get update && apt-get install -y libreoffice
# RUN apt-get update && apt-get install -y pandoc
# RUN apt-get update && apt-get install -y texlive-latex-base
# RUN apt-get update && apt-get install -y texlive-xetex
RUN pip install --upgrade pip
RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu
RUN pip install --no-cache-dir -r requirements.txt
# The port to be exposed
EXPOSE 8501
# Command to run when the container starts
CMD [ "streamlit", "run", "./src/app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.maxUploadSize=4000" ]