Browse Source
Use su-exec instead of gosu, much smaller
for-closed-social
Thomas Boerger
8 years ago
No known key found for this signature in database
GPG Key ID: 5A388F55283960B6
5 changed files with
9 additions and
9 deletions
-
Dockerfile
-
Dockerfile.rpi
-
docker/etc/s6/gitea/run
-
docker/etc/s6/openssh/run
-
docker/etc/s6/syslogd/run
|
|
@ -3,9 +3,9 @@ MAINTAINER Thomas Boerger |
|
|
|
|
|
|
|
EXPOSE 22 3000 |
|
|
|
|
|
|
|
RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \ |
|
|
|
apk -U add \ |
|
|
|
gosu@testing \ |
|
|
|
RUN apk update && \ |
|
|
|
apk add \ |
|
|
|
su-exec \ |
|
|
|
shadow \ |
|
|
|
ca-certificates \ |
|
|
|
sqlite \ |
|
|
|
|
|
@ -3,9 +3,9 @@ MAINTAINER Thomas Boerger |
|
|
|
|
|
|
|
EXPOSE 22 3000 |
|
|
|
|
|
|
|
RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \ |
|
|
|
apk -U add \ |
|
|
|
gosu@testing \ |
|
|
|
RUN apk update && \ |
|
|
|
apk add \ |
|
|
|
su-exec \ |
|
|
|
shadow \ |
|
|
|
ca-certificates \ |
|
|
|
sqlite \ |
|
|
|
|
|
@ -2,5 +2,5 @@ |
|
|
|
[[ -f ./setup ]] && source ./setup |
|
|
|
|
|
|
|
pushd /app/gitea > /dev/null |
|
|
|
exec gosu git /app/gitea/gitea web |
|
|
|
exec su-exec git /app/gitea/gitea web |
|
|
|
popd |
|
|
@ -2,5 +2,5 @@ |
|
|
|
[[ -f ./setup ]] && source ./setup |
|
|
|
|
|
|
|
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 |
|
|
@ -2,5 +2,5 @@ |
|
|
|
[[ -f ./setup ]] && source ./setup |
|
|
|
|
|
|
|
pushd /root > /dev/null |
|
|
|
exec gosu root /sbin/syslogd -nS -O- |
|
|
|
exec su-exec root /sbin/syslogd -nS -O- |
|
|
|
popd |