Compare commits
No commits in common. "master" and "2.15+1" have entirely different histories.
@ -16,8 +16,9 @@ RUN /usr/bin/apt-get update -yqq \
|
|||||||
&& /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 selfoss \
|
&& /usr/sbin/useradd -r -m -s /bin/bash -g selfoss selfoss \
|
||||||
&& /usr/bin/curl -L -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 - selfoss -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 -f /tmp/selfoss.tar.gz \
|
&& /bin/rm -f /tmp/selfoss.tar.gz \
|
||||||
&& /bin/rm -f /home/selfoss/selfoss*.zip \
|
&& /bin/rm -f /home/selfoss/selfoss*.zip \
|
||||||
&& /bin/mkdir /var/lib/selfoss \
|
&& /bin/mkdir /var/lib/selfoss \
|
||||||
@ -26,7 +27,7 @@ RUN /usr/bin/apt-get update -yqq \
|
|||||||
|
|
||||||
VOLUME /var/lib/selfoss
|
VOLUME /var/lib/selfoss
|
||||||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
||||||
ADD ./docker-entrypoint.sh /usr/local/bin/
|
ADD ./docker-entrypoint.sh /usr/local/bin
|
||||||
ADD ./run.php /home/selfoss/
|
ADD ./run.php /home/selfoss/
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
1
run.php
1
run.php
@ -29,7 +29,6 @@ if (php_sapi_name() == 'cli-server') {
|
|||||||
// taken from cli arg, hack for updater
|
// taken from cli arg, hack for updater
|
||||||
$_SERVER["SERVER_ADDR"] = '127.0.0.1';
|
$_SERVER["SERVER_ADDR"] = '127.0.0.1';
|
||||||
$_SERVER["SERVER_NAME"] = '127.0.0.1';
|
$_SERVER["SERVER_NAME"] = '127.0.0.1';
|
||||||
$_SERVER["SERVER_PORT"] = '80';
|
|
||||||
require("index.php");
|
require("index.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user