-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
22 lines (15 loc) · 1.33 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM swipl:7.7.19
MAINTAINER Raivo Laanemets
RUN swipl -g "Os=[interactive(false)],pack_install('http://packs.rlaanemets.com/alternative-router/arouter-1.1.1.tgz',Os),halt" -t "halt(1)"
RUN swipl -g "Os=[interactive(false)],pack_install('http://packs.rlaanemets.com/dict-schema/dict_schema-0.0.2.tgz',Os),halt" -t "halt(1)"
RUN swipl -g "Os=[interactive(false)],pack_install('http://packs.rlaanemets.com/docstore/docstore-2.0.1.tgz',Os),halt" -t "halt(1)"
RUN swipl -g "Os=[interactive(false)],pack_install('http://packs.rlaanemets.com/markdown/markdown-0.0.2.tgz',Os),halt" -t "halt(1)"
RUN swipl -g "Os=[interactive(false)],pack_install('http://packs.rlaanemets.com/simple-template/simple_template-1.0.1.tgz',Os),halt" -t "halt(1)"
RUN swipl -g "Os=[interactive(false)],pack_install('http://packs.rlaanemets.com/sort-dict/sort_dict-0.0.3.tgz',Os),halt" -t "halt(1)"
RUN swipl -g "Os=[interactive(false)],pack_install('http://www.swi-prolog.org/download/pack/smtp-0.9.4.tgz',Os),halt" -t "halt(1)"
RUN swipl -g "Os=[interactive(false)],pack_install('http://packs.rlaanemets.com/blog-core/blog_core-1.1.1.tgz',Os),halt" -t "halt(1)"
ADD --chown=www-data:www-data . /example
EXPOSE 80
WORKDIR /example
ENV PL_ENV production
CMD ["swipl", "-s", "/example/main.pl", "--", "--user=www-data", "--workers=16", "--port=8080", "--fork=false", "--interactive=true"]