Spaces:

File size: 501 Bytes
4242e42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.11

RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"

WORKDIR /app

RUN apt install -y software-properties-common
RUN apt-add-repository -y ppa:swi-prolog/stable
RUN apt install -y swi-prolog

COPY --chown=user ./requirements.txt requirements.txt
COPY --chown=user ./knowledge_base.pl knowledge_base.pl
RUN pip install --no-cache-dir --upgrade -r requirements.txt

COPY --chown=user . /app
EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"
CMD ["python", "app.py"]