isso: replace gosu with su-exec

This commit is contained in:
Wonderfall 2016-05-07 01:04:42 +02:00
parent 5df7fad4ba
commit 969343cf65
2 changed files with 3 additions and 4 deletions

View File

@ -5,8 +5,7 @@ ARG ISSO_VER=0.10.4
ENV GID=1000 UID=1000 ENV GID=1000 UID=1000
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& apk -U add \ && apk -U add \
python \ python \
python-dev \ python-dev \
@ -16,7 +15,7 @@ RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/re
sqlite \ sqlite \
ca-certificates \ ca-certificates \
build-base \ build-base \
gosu@testing \ su-exec \
tini@commuedge \ tini@commuedge \
&& pip install --no-cache cffi \ && pip install --no-cache cffi \
&& pip install --no-cache misaka==1.0.2 \ && pip install --no-cache misaka==1.0.2 \

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
chown -R $UID:$GID /db /config 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