From 969343cf6556e7f9f0dbd3a195fbd5fa1d2b078d Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Sat, 7 May 2016 01:04:42 +0200 Subject: [PATCH] isso: replace gosu with su-exec --- isso/Dockerfile | 5 ++--- isso/run.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/isso/Dockerfile b/isso/Dockerfile index 0ff343f..684023f 100644 --- a/isso/Dockerfile +++ b/isso/Dockerfile @@ -5,8 +5,7 @@ ARG ISSO_VER=0.10.4 ENV GID=1000 UID=1000 -RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ - && echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \ +RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \ && apk -U add \ python \ python-dev \ @@ -16,7 +15,7 @@ RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/re sqlite \ ca-certificates \ build-base \ - gosu@testing \ + su-exec \ tini@commuedge \ && pip install --no-cache cffi \ && pip install --no-cache misaka==1.0.2 \ diff --git a/isso/run.sh b/isso/run.sh index 31b811b..2431731 100644 --- a/isso/run.sh +++ b/isso/run.sh @@ -1,3 +1,3 @@ #!/bin/sh chown -R $UID:$GID /db /config -gosu $UID:$GID isso -c /config/isso.conf run +su-exec $UID:$GID isso -c /config/isso.conf run