Dockerfile 1.51 KB
Newer Older
Fernando Verdugo's avatar
Fernando Verdugo committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM ubuntu:18.04
LABEL maintainer="ravada@telecos.upc.edu"
LABEL description="Ravada Frontend"

RUN apt-get update \
 && apt-get install -y -q --no-install-recommends \
    perl libmojolicious-perl libauthen-passphrase-perl \
    libdbd-mysql-perl libdbi-perl libdbix-connector-perl libipc-run3-perl libnet-ldap-perl \
    libproc-pid-file-perl libsys-virt-perl libxml-libxml-perl libconfig-yaml-perl \
    libmoose-perl libjson-xs-perl perlmagick libmoosex-types-netaddr-ip-perl libsys-statistics-linux-perl \
    libio-interface-perl libiptables-chainmgr-perl libnet-dns-perl liblocale-maketext-lexicon-perl \
    libmojolicious-plugin-i18n-perl libdbd-sqlite3-perl debconf adduser libdigest-sha-perl libnet-ssh2-perl libpbkdf2-tiny-perl \
    libfile-rsync-perl libdate-calc-perl libparallel-forkmanager-perl libdatetime-perl libencode-locale-perl netcat-openbsd \
    libio-stringy-perl libvirt-clients liblwp-useragent-determined-perl supervisor net-tools apt-utils lsof mysql-client \
15
	curl bash vim wget libnet-openssh-perl libdatetime-format-dateparse-perl \
16
17
18
 && apt-get clean

RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata \
Fernando Verdugo's avatar
Fernando Verdugo committed
19
 && rm -rf /var/lib/apt/lists/*
20
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
Fernando Verdugo's avatar
Fernando Verdugo committed
21

22
RUN mkdir -p /var/log/supervisor \
Fernando Verdugo's avatar
Fernando Verdugo committed
23
24
25
26
27
28
29
30
31
32
33
34
 && mkdir -p /run/sshd

EXPOSE 3000

ENV PERL5LIB /root/local/lib/perl5:/root/lib/:/ravada

COPY supervisord.conf /etc/supervisord.conf

COPY ravada.conf /etc/ravada.conf
WORKDIR /ravada

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]