Spaces:

npc0 commited on
Commit
8276868
1 Parent(s): 93ed74f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -1,7 +1,8 @@
1
  FROM python:3.11-alpine
2
 
3
  RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
4
- RUN apk add swi-prolog git
 
5
  RUN apk add --no-cache gcc musl-dev python3-dev
6
 
7
  WORKDIR /app
@@ -10,6 +11,7 @@ COPY ./knowledge_base.pl knowledge_base.pl
10
  COPY ./requirements.txt requirements.txt
11
  RUN pip install --no-cache-dir --upgrade pip
12
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
 
13
 
14
  RUN python -c "import janus_swi as janus"
15
 
 
1
  FROM python:3.11-alpine
2
 
3
  RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
4
+ RUN apk add git
5
+ RUN apk add swi-prolog
6
  RUN apk add --no-cache gcc musl-dev python3-dev
7
 
8
  WORKDIR /app
 
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
+ RUN swipl pack install janus
15
 
16
  RUN python -c "import janus_swi as janus"
17