swi-prolog.dockerfile 459 B

12345678910111213141516
  1. FROM ubuntu:20.04
  2. ENV IROOT=/installs
  3. ENV DEBIAN_FRONTEND noninteractive
  4. RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
  5. RUN apt update -yqq && apt-get install -y software-properties-common
  6. RUN apt-add-repository ppa:swi-prolog/stable -y
  7. RUN apt-get update -y && apt-get install -y --no-install-recommends swi-prolog
  8. COPY server.pl ${IROOT}/
  9. WORKDIR ${IROOT}
  10. CMD swipl server.pl --user=daemon --fork=false --port=8080