-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (26 loc) · 1.22 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
# a2zdotblue/c7-systemd-perl-mojo-02 on gap
# Build from image
FROM a2zdotblue/c7-systemd-perl-mojo-02
LABEL "url"="c7.gap.a1z.us"
RUN yum -y update; yum -y install nano wget vim mariadb-server perl-CPAN perl-DateTime
RUN yum -y install perl-*; cpanm CPAN Cpanel::JSON::XS EV IO::Socket::Socks IO::Socket::SSL Net::DNS::Native Role::Tiny
WORKDIR /app
RUN rm -rf /app
COPY ./perlmojo /app/perlmojo
RUN rm -rf /app/perlmojo/.git
COPY ./start_apps.sh /app/start_apps.sh
RUN yum -y install httpd bind postfix cyrus-imapd* mod_ssl; rm -rf /etc/httpd/conf/httpd.conf; rm -rf /etc/httpd/conf.d/ssl.conf; chmod +x /app/start_apps.sh;
COPY ./apache/httpd.conf /etc/httpd/conf/httpd.conf
COPY ./apache/ssl.conf /etc/httpd/conf.d/ssl.conf
COPY ./apache/index.html /var/www/html/index.html
COPY ./apache/sw.js /var/www/html/sw.js
COPY ./apache/manifest.json /var/www/html/manifest.json
COPY ./apache/offline.html /var/www/html/offline.html
COPY ./perlmojo/public/default.css /var/www/html/default.css
COPY ./perlmojo/public/images /var/www/html/images
COPY ./certs /app/certs
RUN chmod +x /app/perlmojo/script/perlmojo
# expose ports
EXPOSE 80 443 22 3306 7310 7311 7312 7313 7314 7315 7316 7317 7318
# only one CMD
CMD ["/usr/sbin/init"]