forked from Wavyzz/dolibarr-docker
Add exim4 to allow send mail
This commit is contained in:
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,7 +42,10 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
EXPOSE 80
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80 25
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
ENTRYPOINT ["docker-run.sh"]
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
@@ -20,6 +20,8 @@ ENV WWW_GROUP_ID 33
|
||||
|
||||
ENV PHP_INI_DATE_TIMEZONE 'UTC'
|
||||
|
||||
ENV MAIL_DOMAIN_NAME 'localhost'
|
||||
|
||||
RUN apt-get update -q && apt-get upgrade -yq \
|
||||
&& apt-get install -yq \
|
||||
libpng12-dev \
|
||||
@@ -28,6 +30,7 @@ RUN apt-get update -q && apt-get upgrade -yq \
|
||||
libxml2-dev \
|
||||
mysql-client \
|
||||
unzip \
|
||||
exim4 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||
&& docker-php-ext-install gd mysqli soap
|
||||
@@ -39,6 +42,9 @@ RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/ && ln -
|
||||
RUN cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
|
||||
RUN rm -rf /tmp/dolibarr
|
||||
|
||||
# Remove files used by exim4 (it's will be replace on first boot)
|
||||
RUN rm -rf /etc/exim4/update-exim4.conf.conf /etc/mailname
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY docker-run.sh /usr/local/bin/
|
||||
|
||||
@@ -12,9 +12,34 @@ chown -R www-data:www-data /var/www
|
||||
if [ ! -f /usr/local/etc/php/php.ini ]; then
|
||||
cat <<EOF > /usr/local/etc/php/php.ini
|
||||
date.timezone = $PHP_INI_DATE_TIMEZONE
|
||||
sendmail_path = /usr/sbin/sendmail -t -i
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo $MAIL_DOMAIN_NAME > /etc/mailname
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/exim4/update-exim4.conf.conf ]; then
|
||||
cat <<EOF > /etc/exim4/update-exim4.conf.conf
|
||||
dc_eximconfig_configtype='internet'
|
||||
dc_other_hostnames='${MAIL_DOMAIN_NAME}; localhost.localdomain; localhost'
|
||||
dc_local_interfaces='127.0.0.1; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
dc_minimaldns='false'
|
||||
dc_relay_nets=''
|
||||
dc_smarthost=''
|
||||
CFILEMODE='644'
|
||||
dc_use_split_config='false'
|
||||
dc_hide_mailname='true'
|
||||
dc_mailname_in_oh='true'
|
||||
dc_localdelivery='mail_spool'
|
||||
EOF
|
||||
|
||||
service exim4 restart
|
||||
fi
|
||||
|
||||
if [ ! -f /var/www/html/conf/conf.php ]; then
|
||||
cat <<EOF > /var/www/html/conf/conf.php
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user