Skip to content
Permalink
Newer
Older
100644 79 lines (59 sloc) 3.82 KB
1
FROM ubuntu:16.04
2
MAINTAINER Sreekanth G S <mail@sreekanth.in>
3
#ENV http_proxy=http://sysfp0t.its.unc.edu:80
4
#ENV https_proxy=http://sysfp0t.its.unc.edu:80
5
#RUN DEBIAN_FRONTEND=noninteractive \
6
# apt-get -o Acquire::http::Proxy="http://sysfp0t.its.unc.edu:80" update && \
7
# apt-get -o Acquire::http::Proxy="http://sysfp0t.its.unc.edu:80" install -y language-pack-en-base &&\
8
# export LC_ALL=en_US.UTF-8 && \
9
#` export LANG=en_US.UTF-8
10
11
12
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y software-properties-common
13
#RUN cat /etc/locale.gen
14
#RUN cat /etc/environment
15
#RUN LANG=en_US.UTF-8 locale-gen --purge en_US.UTF-8 && echo -e 'LANG="en_US.UTF-8"\nLANGUAGE="en_US:en"\n' > /etc/default/locale && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && echo "LC_ALL=en_US.UTF-8" > /etc/environment && echo "LANG=en_US.UTF-8" >> /etc/environment && locale-gen "en_US.UTF-8" && export LC_ALL=en_US.UTF-8 && export LANG=en_US.UTF-8 && add-apt-repository ppa:ondrej/php
16
17
#RUN apt-get -o Acquire::http::Proxy="http://sysfp0t.its.unc.edu:80" update && apt-get -o Acquire::http::Proxy="http://sysfp0t.its.unc.edu:80" install -y software-properties-common language-pack-en-base && \
18
#LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php && apt-get -o Acquire::http::Proxy="http://sysfp0t.its.unc.edu:80" update && apt-get -o Acquire::http::Proxy="http://sysfp0t.its.unc.edu:80" install -y \
19
RUN echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main" >> /etc/apt/sources.list && echo "deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main" >> /etc/apt/sourceis.list && apt-get update --allow-unauthenticated
20
RUN cat /etc/apt/sources.list && ls -l /etc/apt/
21
RUN apt-get install -y --allow-unauthenticated apache2-bin libapache2-mod-php php-curl php-ldap php-mysql php-mcrypt \
22
php-gd php-xml patch curl vim git mysql-client wget unzip lynx netcat
23
24
RUN phpenmod mcrypt && phpenmod gd
25
RUN a2enmod xml2enc && a2enmod rewrite
26
Jan 23, 2020
27
RUN sed -i 's/variables_order = .*/variables_order = "EGPCS"/' /etc/php/7.4/apache2/php.ini
28
RUN sed -i 's/variables_order = .*/variables_order = "EGPCS"/' /etc/php/7.4/cli/php.ini
29
30
RUN useradd --uid 1000 --gid 50 docker
31
32
RUN echo export APACHE_RUN_USER=docker >> /etc/apache2/envvars
33
RUN echo export APACHE_RUN_GROUP=staff >> /etc/apache2/envvars
34
35
COPY 000-default.conf /etc/apache2/sites-enabled/000-default.conf
36
37
RUN chown -R docker /var/www/html
38
39
WORKDIR /var/www/html
40
41
RUN wget -q "http://www.sentrifugo.com/home/downloadfile?file_name=Sentrifugo.zip" -O Sentrifugo.zip
42
#COPY Sentrifugo.zip /var/www/html/
43
RUN unzip Sentrifugo.zip && mv Sentrifugo_3.2 sentrifugo
44
45
WORKDIR /var/www/html/sentrifugo
46
RUN chown -R docker .
47
48
COPY entrypoint.sh /entrypoint.sh
49
50
RUN chmod +x /entrypoint.sh
51
52
RUN chmod 777 -R public/downloads public/uploads public/email_constants.php \
53
public/emptabconfigure.php \
54
public/site_constants.php \
55
public/db_constants.php \
56
public/application_constants.php \
57
public/mail_settings_constants.php \
58
logs/application.log \
59
application/modules/default/plugins/AccessControl.php \
60
install
61
62
63
VOLUME /var/www/html/sentrifugo/public/uploads
64
65
VOLUME /var/www/html/sentrifugo/public/downloads
66
#VOLUME /var/www/html/sentrifugo
67
#RUN apachectl start && sleep 2 && curl -d "host=mariadb&username=sentrifugo&password=54y6RxN7GfC7aes3&dbname=sentrifugo" -H "Content-Type: application/x-www-form-urlencoded" -X POST http://localhost:80/install/step2.php && curl -data-raw "app_name=sentrifugo" -data-raw "email=sentrifugo.container@gmail.com" -H "Content-Type: application/x-www-form-urlencoded" -X POST http://localhost:80/install/step3.php
68
#RUN apachectl stop
69
COPY application_constants.php /var/www/html/sentrifugo/public
70
COPY mail_settings_constants.php /var/www/html/sentrifugo/public
71
COPY step3.sql /tmp
72
COPY step4.sql /tmp
73
COPY step5.sql /tmp
74
COPY trigger.sql /tmp
75
COPY banderson.sql /tmp
76
77
ENTRYPOINT ["/entrypoint.sh"]
78
79
EXPOSE 80
You can’t perform that action at this time.