functions

Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
Jess Frazelle 2016-04-06 03:52:53 -07:00
parent a85814d20e
commit 7368507cb5
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

View File

@ -22,7 +22,13 @@ RUN apk update && apk add \
&& adduser -D -S -s /usr/bin/git-shell -h /home/git -g git git \
&& mkdir -p /home/git/.ssh \
&& chown -R git:git /home/git \
&& passwd -u git
&& passwd -u git \
&& { \
echo 'create_repo(){'; \
echo 'git init --bare $1'; \
echo 'chown -R git:git $1'; \
echo '}'; \
} > /root/.bashrc
ENV HOME /home/git
EXPOSE 22