1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

Use su-exec instead of gosu, much smaller

This commit is contained in:
Thomas Boerger 2016-11-28 17:16:13 +01:00
parent 575dc69e3b
commit 65d0426b91
No known key found for this signature in database
GPG key ID: 5A388F55283960B6
5 changed files with 9 additions and 9 deletions

View file

@ -3,9 +3,9 @@ MAINTAINER Thomas Boerger <thomas@webhippie.de>
EXPOSE 22 3000 EXPOSE 22 3000
RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \ RUN apk update && \
apk -U add \ apk add \
gosu@testing \ su-exec \
shadow \ shadow \
ca-certificates \ ca-certificates \
sqlite \ sqlite \

View file

@ -3,9 +3,9 @@ MAINTAINER Thomas Boerger <thomas@webhippie.de>
EXPOSE 22 3000 EXPOSE 22 3000
RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \ RUN apk update && \
apk -U add \ apk add \
gosu@testing \ su-exec \
shadow \ shadow \
ca-certificates \ ca-certificates \
sqlite \ sqlite \

View file

@ -2,5 +2,5 @@
[[ -f ./setup ]] && source ./setup [[ -f ./setup ]] && source ./setup
pushd /app/gitea > /dev/null pushd /app/gitea > /dev/null
exec gosu git /app/gitea/gitea web exec su-exec git /app/gitea/gitea web
popd popd

View file

@ -2,5 +2,5 @@
[[ -f ./setup ]] && source ./setup [[ -f ./setup ]] && source ./setup
pushd /root > /dev/null pushd /root > /dev/null
exec gosu root /usr/sbin/sshd -E /var/log/sshd.log -D exec su-exec root /usr/sbin/sshd -E /var/log/sshd.log -D
popd popd

View file

@ -2,5 +2,5 @@
[[ -f ./setup ]] && source ./setup [[ -f ./setup ]] && source ./setup
pushd /root > /dev/null pushd /root > /dev/null
exec gosu root /sbin/syslogd -nS -O- exec su-exec root /sbin/syslogd -nS -O-
popd popd