Spaces:

npc0 commited on
Commit
4242e42
1 Parent(s): 6b571dd

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
+
7
+ WORKDIR /app
8
+
9
+ RUN apt install -y software-properties-common
10
+ RUN apt-add-repository -y ppa:swi-prolog/stable
11
+ RUN apt install -y swi-prolog
12
+
13
+ COPY --chown=user ./requirements.txt requirements.txt
14
+ COPY --chown=user ./knowledge_base.pl knowledge_base.pl
15
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
16
+
17
+ COPY --chown=user . /app
18
+ EXPOSE 7860
19
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
20
+ CMD ["python", "app.py"]