File size: 443 Bytes
6a9fc74
ec7ba9f
6a9fc74
 
 
ec7ba9f
6a9fc74
ec7ba9f
7bb2973
26b4f16
ec7ba9f
7bb2973
86f8ebe
6a9fc74
 
 
ec7ba9f
6a9fc74
ec7ba9f
6a9fc74
 
ec7ba9f
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.10-slim

RUN apt-get update && \
    apt-get install -y --no-install-recommends git && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app

RUN pip install --no-cache-dir \
    "stoic @ git+https://github.com/PickyBinders/stoic.git"

RUN pip install --no-cache-dir gradio==6.9.0

RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user

COPY --chown=user . .

EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"

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