amit01Xindus commited on
Commit
7d97b2d
·
verified ·
1 Parent(s): dcee8bc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -1,5 +1,6 @@
1
  FROM python:3.10-slim
2
 
 
3
  RUN apt-get update && \
4
  apt-get install -y \
5
  libcrypt-dev \
@@ -22,16 +23,17 @@ RUN apt-get update && \
22
 
23
  WORKDIR /app
24
 
25
- # Create uploads directory with correct permissions
26
- RUN mkdir -p /app/uploads && chmod -R 777 /app/uploads
27
 
28
  COPY requirements.txt .
29
-
30
  RUN pip install --upgrade pip
31
  RUN pip install --no-cache-dir -r requirements.txt
32
 
 
 
 
33
  COPY . .
34
 
35
  EXPOSE 7860
36
-
37
  CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
 
1
  FROM python:3.10-slim
2
 
3
+ # Install system dependencies
4
  RUN apt-get update && \
5
  apt-get install -y \
6
  libcrypt-dev \
 
23
 
24
  WORKDIR /app
25
 
26
+ # Create both uploads and outputs directories with correct permissions
27
+ RUN mkdir -p /app/uploads /app/outputs && chmod -R 777 /app/uploads /app/outputs
28
 
29
  COPY requirements.txt .
 
30
  RUN pip install --upgrade pip
31
  RUN pip install --no-cache-dir -r requirements.txt
32
 
33
+ # Install tabula-py to fix the warning
34
+ RUN pip install tabula-py
35
+
36
  COPY . .
37
 
38
  EXPOSE 7860
 
39
  CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]