Spaces:

npc0 commited on
Commit
a3df185
1 Parent(s): 0027190

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -6,20 +6,16 @@ RUN apk add swi-prolog
6
  RUN apk add --no-cache gcc musl-dev python3-dev
7
 
8
  WORKDIR /app
 
9
 
10
- COPY ./knowledge_base.pl knowledge_base.pl
11
- COPY ./requirements.txt requirements.txt
12
  RUN pip install --no-cache-dir --upgrade pip
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
- RUN git clone https://github.com/SWI-Prolog/packages-swipy.git
16
- RUN mv packages-swipy/janus/janus.pl .
17
- RUN rm -r packages-swipy
18
- RUN zip janus.zip janus.pl
19
  RUN echo 1 | swipl pack install janus
20
  RUN python -c "import janus_swi as janus"
21
 
22
- COPY . /app
23
  EXPOSE 7860
24
  ENV GRADIO_SERVER_NAME="0.0.0.0"
25
  CMD ["python", "app.py"]
 
6
  RUN apk add --no-cache gcc musl-dev python3-dev
7
 
8
  WORKDIR /app
9
+ COPY . /app
10
 
11
+ # COPY ./knowledge_base.pl knowledge_base.pl
12
+ # COPY ./requirements.txt requirements.txt
13
  RUN pip install --no-cache-dir --upgrade pip
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
 
 
 
 
16
  RUN echo 1 | swipl pack install janus
17
  RUN python -c "import janus_swi as janus"
18
 
 
19
  EXPOSE 7860
20
  ENV GRADIO_SERVER_NAME="0.0.0.0"
21
  CMD ["python", "app.py"]