Spaces:
Configuration error

bhoomee commited on
Commit
08ee458
·
verified ·
1 Parent(s): cff73fe

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -8
Dockerfile CHANGED
@@ -1,10 +1,9 @@
1
- FROM python:3.12
2
- RUN useradd -m -u 1000 user
3
- USER user
4
- ENV PATH=/home/user/.local/bin:$PATH
5
  WORKDIR /app
6
- COPY --chown=user requirements.txt requirements.txt
7
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
8
- COPY --chown=user. /app
9
- EXPOSE 7860
10
  CMD ["python", "app.py"]
 
1
+ FROM python:3.10
2
+
3
+ RUN apt-get update && apt-get install -y tesseract-ocr && rm -rf /var/lib/apt/lists/*
4
+
5
  WORKDIR /app
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+ COPY . .
 
9
  CMD ["python", "app.py"]