Ankushbl6 commited on
Commit
73882ca
·
verified ·
1 Parent(s): b7a798f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -6,6 +6,7 @@ RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
8
  git \
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  COPY requirements.txt ./
@@ -13,6 +14,11 @@ COPY src/ ./src/
13
 
14
  RUN pip3 install -r requirements.txt
15
 
 
 
 
 
 
16
  EXPOSE 8501
17
 
18
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
 
6
  build-essential \
7
  curl \
8
  git \
9
+ tesseract-ocr \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  COPY requirements.txt ./
 
14
 
15
  RUN pip3 install -r requirements.txt
16
 
17
+ # Fix 403 error on file uploads
18
+ ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false
19
+ ENV STREAMLIT_SERVER_ENABLE_CORS=false
20
+ ENV STREAMLIT_SERVER_MAX_UPLOAD_SIZE=200
21
+
22
  EXPOSE 8501
23
 
24
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health