Niansuh commited on
Commit
0464e0f
1 Parent(s): 933a887

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -1,15 +1,13 @@
1
  # Use the official Python 3.11 slim image as the base
2
  FROM python:3.11-slim
3
 
4
- # Install build-essential and Fortran compiler along with Tesseract OCR
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
- build-essential \
7
- gfortran \
8
  tesseract-ocr \
9
  libtesseract-dev \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
- # Set environment variables
13
  ENV PYTHONDONTWRITEBYTECODE=1
14
  ENV PYTHONUNBUFFERED=1
15
 
 
1
  # Use the official Python 3.11 slim image as the base
2
  FROM python:3.11-slim
3
 
4
+ # Install Tesseract OCR and its development libraries
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
 
 
6
  tesseract-ocr \
7
  libtesseract-dev \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
+ # Set environment variables to prevent Python from writing .pyc files and to buffer stdout/stderr
11
  ENV PYTHONDONTWRITEBYTECODE=1
12
  ENV PYTHONUNBUFFERED=1
13