@ -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 && \
RUN apk update && \
apk -U add \
apk add \
gosu@testing \
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
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
exec gosu root /sbin/syslogd -nS -O-
exec su-exec root /sbin/syslogd -nS -O-