Spaces:

npc0 commited on
Commit
df9178b
1 Parent(s): 7adf9d9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -4,18 +4,14 @@ RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositor
4
  RUN apk add swi-prolog git
5
  RUN apk add --no-cache gcc musl-dev python3-dev
6
 
7
- RUN adduser -D user
8
- USER user
9
- ENV PATH="/home/user/.local/bin:$PATH"
10
-
11
  WORKDIR /app
12
 
13
- COPY --chown=user ./knowledge_base.pl knowledge_base.pl
14
  RUN pip install --no-cache-dir --upgrade pip
15
- RUN pip install --no-cache-dir --upgrade --user gradio
16
- RUN pip install --no-cache-dir --upgrade --user git+https://github.com/yuce/pyswip@master#egg=pyswip
17
 
18
- COPY --chown=user . /app
19
  EXPOSE 7860
20
  ENV GRADIO_SERVER_NAME="0.0.0.0"
21
  CMD ["python", "app.py"]
 
4
  RUN apk add swi-prolog git
5
  RUN apk add --no-cache gcc musl-dev python3-dev
6
 
 
 
 
 
7
  WORKDIR /app
8
 
9
+ COPY ./knowledge_base.pl knowledge_base.pl
10
  RUN pip install --no-cache-dir --upgrade pip
11
+ RUN pip install --no-cache-dir --upgrade gradio
12
+ RUN pip install --no-cache-dir --upgrade git+https://github.com/yuce/pyswip@master#egg=pyswip
13
 
14
+ COPY . /app
15
  EXPOSE 7860
16
  ENV GRADIO_SERVER_NAME="0.0.0.0"
17
  CMD ["python", "app.py"]