Install SelfOSS 2.15 & use embedded PHP web server

This commit is contained in:
Jean Baptiste Favre 2016-06-27 23:17:01 +02:00
parent 01163323c2
commit 2eac287011
2 changed files with 6 additions and 5 deletions

View File

@ -11,13 +11,14 @@ ADD scripts/debian_cleaner.sh /tmp/
RUN /usr/bin/apt-get update -yqq \ RUN /usr/bin/apt-get update -yqq \
&& /usr/bin/apt-get upgrade --no-install-recommends -yqq \ && /usr/bin/apt-get upgrade --no-install-recommends -yqq \
&& /usr/bin/apt-get install --no-install-recommends -yqq curl ca-certificates \ && /usr/bin/apt-get install --no-install-recommends -yqq curl ca-certificates \
nginx php5-fpm php5-apcu php5-curl php5-gd php5-sqlite \ php5-cli php5-apcu php5-curl php5-gd php5-sqlite \
&& /usr/bin/chsh -s /bin/bash root \ && /usr/bin/chsh -s /bin/bash root \
&& /bin/rm /bin/sh && ln -s /bin/bash /bin/sh \ && /bin/rm /bin/sh && ln -s /bin/bash /bin/sh \
&& /usr/sbin/groupadd -r selfoss \ && /usr/sbin/groupadd -r selfoss \
&& /usr/sbin/useradd -r -m -s /bin/bash -g selfoss sefloss \ && /usr/sbin/useradd -r -m -s /bin/bash -g selfoss selfoss \
&& /usr/bin/curl -o /tmp/selfoss.tar.gz https://github.com/SSilence/selfoss/archive/2.15.tar.gz \ && /usr/bin/curl -L -o /tmp/selfoss.tar.gz https://github.com/SSilence/selfoss/archive/2.15.tar.gz
&& /bin/su - dataiku -c '/bin/tar xzf /tmp/selfoss.tar.gz -C /home/selfoss --strip-components=1' \
RUN /bin/su - selfoss -c '/bin/tar xzf /tmp/selfoss.tar.gz -C /home/selfoss --strip-components=1' \
&& /bin/rm /tmp/selfoss.tar.gz \ && /bin/rm /tmp/selfoss.tar.gz \
&& /bin/mkdir /var/lib/selfoss \ && /bin/mkdir /var/lib/selfoss \
&& /bin/chown -R selfoss: /var/lib/selfoss \ && /bin/chown -R selfoss: /var/lib/selfoss \

View File

@ -11,4 +11,4 @@ trap "shut_down" SIGKILL SIGTERM SIGHUP SIGINT EXIT
/bin/chown selfoss:selfoss ${SELFOSSDATA} /bin/chown selfoss:selfoss ${SELFOSSDATA}
/bin/bash /bin/su - selfoss -c 'php -S 0.0.0.0:8080 -t /home/selfoss'