File size: 440 Bytes
b1153c9
35c351a
b1153c9
 
 
 
 
 
 
 
 
35c351a
47255f0
35c351a
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.11-slim

WORKDIR /app

RUN apt-get update && apt-get install -y git

RUN useradd -m -u 1000 user
# Switch to root to change permissions
USER root
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN pip install --no-cache-dir --no-deps gradio_huggingfacehub_search
COPY --chown=user . /app
EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"

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