prthm11 commited on
Commit
ed4b853
·
verified ·
1 Parent(s): 72a2e7f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -32,9 +32,13 @@ RUN apt-get update && apt-get install -y \
32
  libgl1 \
33
  ffmpeg \
34
  libopencv-dev \
35
- && apt-get clean && rm -rf /var/lib/apt/lists/*
 
 
 
 
 
36
 
37
- RUN pip install -r requirements.txt
38
  # Fontconfig Warning Suppression (optional)
39
  ENV FONTCONFIG_PATH=/etc/fonts
40
  ENV FONTCONFIG_FILE=/etc/fonts/fonts.conf
@@ -49,7 +53,7 @@ RUN python -m nltk.downloader -d /app/nltk_data \
49
 
50
  RUN mkdir -p /app/cache /app/data && chmod -R 777 /app/cache /app/data
51
  RUN mkdir -p /app/OUTPUTS
52
- RUN chmod -R 777 /app
53
 
54
  RUN mkdir -p outputs/DETECTED_IMAGE outputs/SCANNED_IMAGE outputs/EXTRACTED_JSON
55
 
 
32
  libgl1 \
33
  ffmpeg \
34
  libopencv-dev \
35
+ curl \
36
+ ca-certificates \
37
+ && apt-get clean
38
+ && rm -rf /var/lib/apt/lists/*
39
+
40
+ RUN pip install --upgrade pip && pip install -r requirements.txt
41
 
 
42
  # Fontconfig Warning Suppression (optional)
43
  ENV FONTCONFIG_PATH=/etc/fonts
44
  ENV FONTCONFIG_FILE=/etc/fonts/fonts.conf
 
53
 
54
  RUN mkdir -p /app/cache /app/data && chmod -R 777 /app/cache /app/data
55
  RUN mkdir -p /app/OUTPUTS
56
+ RUN mkdir -p /app/outputs \
57
 
58
  RUN mkdir -p outputs/DETECTED_IMAGE outputs/SCANNED_IMAGE outputs/EXTRACTED_JSON
59