Rauhan commited on
Commit
0bfcc48
1 Parent(s): a582cb0

UPDATE: New Endpoints

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -1,11 +1,11 @@
1
  FROM python:3.10-slim
2
 
 
 
3
  WORKDIR /app
4
 
5
  COPY . /app
6
 
7
- RUN chmod -R 777 /app
8
-
9
  RUN apt-get -y update && apt-get -y upgrade
10
 
11
  RUN apt-get install -y \
@@ -18,14 +18,12 @@ RUN apt-get install -y \
18
  && apt-get clean \
19
  && rm -rf /var/lib/apt/lists/*
20
 
21
- RUN mkdir -p /app/nltk_data && chmod -R 777 /app/nltk_data
22
 
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
25
  RUN python -m nltk.downloader -d /app/nltk_data all
26
 
27
- RUN chmod -R 777 /.paddleocr
28
-
29
  EXPOSE 7860
30
 
31
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10-slim
2
 
3
+ ENV HOME /app
4
+
5
  WORKDIR /app
6
 
7
  COPY . /app
8
 
 
 
9
  RUN apt-get -y update && apt-get -y upgrade
10
 
11
  RUN apt-get install -y \
 
18
  && apt-get clean \
19
  && rm -rf /var/lib/apt/lists/*
20
 
21
+ RUN mkdir -p /app/nltk_data && chmod -R 777 /app
22
 
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
25
  RUN python -m nltk.downloader -d /app/nltk_data all
26
 
 
 
27
  EXPOSE 7860
28
 
29
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]