vishwakayireddi1234 commited on
Commit
9f58270
·
verified ·
1 Parent(s): b3c62a5

Update Dockerfile

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