Dockerfile 1.49 KB
Newer Older
Fernando Verdugo's avatar
Fernando Verdugo committed
1
FROM ubuntu:20.04
Fernando Verdugo's avatar
Fernando Verdugo committed
2
3
4
5
LABEL maintainer="ravada@telecos.upc.edu"
LABEL description="Ravada Frontend"

RUN apt-get update \
Fernando Verdugo's avatar
Fernando Verdugo committed
6
 && DEBIAN_FRONTEND="noninteractive" TZ=$TZ apt-get install -y -q --no-install-recommends \
Fernando Verdugo's avatar
Fernando Verdugo committed
7
8
9
10
    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 \
11
    libio-interface-perl libnet-dns-perl liblocale-maketext-lexicon-perl \
Fernando Verdugo's avatar
Fernando Verdugo committed
12
13
14
    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 tzdata libfile-tee-perl \
Francesc Guasch's avatar
Francesc Guasch committed
16
 && apt-get clean \
Fernando Verdugo's avatar
Fernando Verdugo committed
17
 && rm -rf /var/lib/apt/lists/*
18
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
Fernando Verdugo's avatar
Fernando Verdugo committed
19

20
RUN mkdir -p /var/log/supervisor \
Fernando Verdugo's avatar
Fernando Verdugo committed
21
22
23
24
25
26
27
28
29
30
31
32
 && 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"]