File size: 632 Bytes
54471e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
aa3bf9e
54471e2
 
 
 
 
 
fae1212
1508f14
54471e2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

FROM python:3.12-slim

WORKDIR /app

COPY --link --chown=1000 . .

RUN mkdir -p /tmp/cache/
RUN chmod a+rwx -R /tmp/cache/
RUN apt-get update && apt-get install -y poppler-utils ca-certificates curl gnupg build-essential \
gcc \
g++ \
make \
libffi-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*


ENV PYTHONPATH=/app

ENV HF_HOME=/tmp/cache/


RUN pip install --no-cache-dir -r requirements.txt

ENV PYTHONUNBUFFERED=1 	GRADIO_ALLOW_FLAGGING=never 	GRADIO_NUM_PORTS=1 	GRADIO_SERVER_NAME=0.0.0.0     GRADIO_SERVER_PORT=7860 	SYSTEM=spaces

# RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true

CMD ["python", "app.py"]