Sign inSign up

nextdom/nextdom-test2

By nextdom

•Updated over 6 years ago

Image
0

1.0K

nextdom/nextdom-test2 repository overview

FROM ubuntu:latest
MAINTAINER [email protected]
ENV DEBIAN_FRONTEND=noninteractive
ENV APACHE_PORT=443
ENV APACHE_PORT=80
ENV locale-gen=fr_FR.UTF-8
RUN echo "127.0.1.1 $HOSTNAME" >> /etc/hosts && \
    apt-get update && \
    apt-get install --yes --no-install-recommends software-properties-common gnupg wget rsync iproute2
RUN wget -qO - http://debian.nextdom.org/debian/nextdom.gpg.key | apt-key add - && \
    wget https://deb.nodesource.com/setup_10.x -O install_npm.sh && \
    bash install_npm.sh && \
    echo "deb http://debian.nextdom.org/debian nextdom main" >/etc/apt/sources.list.d/nextdom.list && \
    apt-get update && \
    apt-get --yes install --no-install-recommends nextdom-mysql nextdom-minimal composer python-jsmin ruby-sass nodejs && \
    rm install_npm.sh
RUN apt-get clean autoclean && \
    apt-get autoremove --yes && \
    rm -fr /var/lib/{apt,dpkg,cache,log}/
RUN rm -fr /data/core/config
RUN echo "#!/bin/sh" > /start.sh && \
    echo "rsync -a /data/ /usr/share/nextdom/ --exclude scripts/phpdox --exclude plugins --exclude docs --exclude vendor --exclude public --exclude .git  --exclude .sass-cache --exclude docs --exclude backup --exclude var" >> /start.sh && \
    echo "cd /usr/share/nextdom" >> /start.sh && \
    echo "mkdir plugins public backup .git" >> /start.sh && \
    echo "service cron start" >> /start.sh && \
    echo "service mysql start" >> /start.sh && \
    echo "service apache2 start" >> /start.sh && \
    echo "./scripts/gen_global.sh" >> /start.sh && \
    echo "bash -x /usr/share/nextdom/install/install_git.sh" >> /start.sh && \
    echo "composer install --dev" && \
    echo "mysql -u root -e \"UPDATE nextdom.user SET password = SHA2('nextdom_test', 512)\"" >> /start.sh && \
    echo "echo NEXTDOM TEST READY" >> /start.sh && \
    echo "while true; do" >> /start.sh && \
    echo "  sleep 50" >> /start.sh && \
    echo "done" >> /start.sh && \
    chmod +x /start.sh
RUN echo "#!/bin/sh" > /launch.sh && \
    echo "service cron start" >> /launch.sh && \
    echo "service mysql start" >> /launch.sh && \
    echo "service apache2 start" >> /launch.sh && \
    echo "while true; do" >> /launch.sh && \
    echo "  sleep 100" >> /launch.sh && \
    echo "done" >> /launch.sh && \
    chmod +x /launch.sh
VOLUME [/data]
CMD ["bash", "/launch.sh"]

Tag summary

Content type

Image

Digest

Size

280.4 MB

Last updated

over 6 years ago

docker pull nextdom/nextdom-test2