FROM debian:jessie

  1. # inheriting from (basically empty, used for example)

RUN apt-get update RUN apt-get upgrade RUN apt-get install -y lighttpd RUN apt-get install -y php5-cgi RUN apt-get install -y wget WORKDIR /var/www RUN wget RUN tar -zxf pmwiki-latest.tgz

  1. Getting data

RUN wget RUN tar -zxf archived-version.tar.gz RUN mv /var/www/home/web/* /var/www/html/ RUN wget RUN mv /etc/lighttpd/conf-enabled RUN lighttpd-enable-mod fastcgi fastcgi-php; exit 0 RUN /etc/init.d/lighttpd start

  1. service restart failed
  2. make available tools to remember what was done in the SRE before killing it
  3. e.g. bash history, modified files in the filesystem, etc

RUN wget RUN tar -zxf SRE-tools.tar.gz RUN cp SRE-tools/* /usr/bin

  1. usage SRE-shutdown makes an archive making it possible to restart a SRE and obtain the same results

EXPOSE 80 ENTRYPOINT lighttpd -Df /etc/lighttpd/lighttpd.conf