npc0 commited on
Commit
409b3ab
·
verified ·
1 Parent(s): 6132b8f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -1,9 +1,11 @@
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
9
  COPY . /app
@@ -11,8 +13,6 @@ COPY . /app
11
  RUN pip install --no-cache-dir --upgrade pip
12
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
13
 
14
- # RUN echo 1 | swipl pack install janus
15
- RUN swipl -g "pack_install('janus-1.0.tgz')" -t halt
16
  RUN python -c "import janus_swi as janus"
17
 
18
  EXPOSE 7860
 
1
+ FROM python:ubuntu
2
 
3
+ # RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
4
+ RUN apt install -y git
5
+ RUN apt install -y software-properties-common
6
+ RUN apt-add-repository ppa:swi-prolog/stable
7
+ RUN apt install -y swi-prolog
8
+ RUN apt install -y gcc python3-dev
9
 
10
  WORKDIR /app
11
  COPY . /app
 
13
  RUN pip install --no-cache-dir --upgrade pip
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
 
 
16
  RUN python -c "import janus_swi as janus"
17
 
18
  EXPOSE 7860