mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
functions
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
parent
a85814d20e
commit
7368507cb5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user