start.sh as root and su-exec after env prep

This commit is contained in:
Umputun
2018-04-14 13:27:38 -05:00
parent 2c4187f0cb
commit 07e43714da
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -36,8 +36,6 @@ RUN chown -R umputun:umputun /srv
ADD start.sh /srv/start.sh
RUN chmod +x /srv/start.sh
USER umputun
WORKDIR /srv
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s CMD curl --fail http://localhost:8080/ping || exit 1
+1 -1
View File
@@ -3,4 +3,4 @@
echo "prepare environment"
echo "start remark42 server"
/srv/remark server
/sbin/su-exec umputun /srv/remark server