summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Boerger <tboerger@suse.de>2016-11-28 17:16:13 +0100
committerThomas Boerger <tboerger@suse.de>2016-11-28 17:16:13 +0100
commit65d0426b915472bd680788158d0c66bbbec9716e (patch)
tree226026c82f37c7c5a24528e7bfc77bdc5f6ef047
parent575dc69e3b3384310e50fff6da227c15f50b3826 (diff)
downloadgitea-65d0426b915472bd680788158d0c66bbbec9716e.tar.gz
gitea-65d0426b915472bd680788158d0c66bbbec9716e.zip
Use su-exec instead of gosu, much smaller
-rw-r--r--Dockerfile6
-rw-r--r--Dockerfile.rpi6
-rwxr-xr-xdocker/etc/s6/gitea/run2
-rwxr-xr-xdocker/etc/s6/openssh/run2
-rwxr-xr-xdocker/etc/s6/syslogd/run2
5 files changed, 9 insertions, 9 deletions
diff --git a/Dockerfile b/Dockerfile
index df363e07fb..fd25c88346 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,9 +3,9 @@ MAINTAINER Thomas Boerger <thomas@webhippie.de>
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 \
diff --git a/Dockerfile.rpi b/Dockerfile.rpi
index 6a168c3a5b..d237a63ba0 100644
--- a/Dockerfile.rpi
+++ b/Dockerfile.rpi
@@ -3,9 +3,9 @@ MAINTAINER Thomas Boerger <thomas@webhippie.de>
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 \
diff --git a/docker/etc/s6/gitea/run b/docker/etc/s6/gitea/run
index 246e74d27c..1fddb93708 100755
--- a/docker/etc/s6/gitea/run
+++ b/docker/etc/s6/gitea/run
@@ -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
diff --git a/docker/etc/s6/openssh/run b/docker/etc/s6/openssh/run
index b4c4cb4088..46f422cce6 100755
--- a/docker/etc/s6/openssh/run
+++ b/docker/etc/s6/openssh/run
@@ -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
diff --git a/docker/etc/s6/syslogd/run b/docker/etc/s6/syslogd/run
index d876093047..2c8d2cf1f2 100755
--- a/docker/etc/s6/syslogd/run
+++ b/docker/etc/s6/syslogd/run
@@ -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