-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
74 lines (63 loc) · 1.86 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FROM ubuntu:bionic
MAINTAINER Qgoda (https://github.com/gflohr/qgoda/issues)
ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1
RUN apt-get update && apt-get install -y make \
gcc \
git \
curl \
apt-transport-https \
gnupg \
dumb-init \
cpanminus \
libmoo-perl \
libanyevent-perl \
libwww-perl \
libtemplate-perl \
libyaml-perl \
libfile-copy-recursive-perl \
libipc-signal-perl \
libcpanel-json-xs-perl \
libinline-perl \
libdata-walk-perl \
libfile-homedir-perl \
libarchive-extract-perl \
libgit-repository-perl \
libtext-markdown-perl \
libio-interactive-perl \
libjson-perl \
libboolean-perl \
libtext-unidecode-perl \
libtest-deep-perl \
libmoox-late-perl \
libcapture-tiny-perl \
libtest-without-module-perl \
libpath-iterator-rule-perl \
libtext-glob-perl \
libnumber-compare-perl \
libtest-filename-perl \
libmoox-types-mooselike-perl \
libtest-fatal-perl \
liblinux-inotify2-perl \
libtest-exception-perl \
libsub-uplevel-perl \
libtest-requires-perl \
liblocale-po-perl \
libtest-output-perl \
libtext-trim-perl
# We need a recent nodejs.
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
apt-get install -y nodejs && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" \
> /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get install -y yarn
# Newer versions of JavaScript::Duktape::XS do not work.
WORKDIR /root
RUN cpanm GONZUS/JavaScript-Duktape-XS-0.000074.tar.gz
COPY . /root/qgoda/
WORKDIR /root/qgoda/
RUN cpanm . && rm -rf /root/qgoda /root/.cpanm
VOLUME /data
RUN groupadd qgoda && useradd -r -g qgoda qgoda && chown -R qgoda:qgoda /data
WORKDIR /data
ENTRYPOINT ["/usr/bin/dumb-init", "--", "qgoda"]