Skip to content

Commit

Permalink
Use app/docker folder for SSH Configureation
Browse files Browse the repository at this point in the history
  • Loading branch information
0rax committed Oct 2, 2015
1 parent e63e0b3 commit 3cad8d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ RUN echo "@edge http://dl-4.alpinelinux.org/alpine/edge/main" | tee -a /etc/apk/
&& apk -U --no-progress add ca-certificates git linux-pam s6@edge curl openssh socat \
&& chmod +x /usr/sbin/gosu

# Configure SSH
COPY docker/sshd_config /etc/ssh/sshd_config

# Configure Go and build Gogs
ENV GOPATH /tmp/go
ENV PATH $PATH:$GOPATH/bin
Expand All @@ -26,6 +23,7 @@ ENV GOGS_CUSTOM /data/gogs
RUN adduser -D -g 'Gogs Git User' git -h /data/git/ -s /bin/sh && passwd -u git
RUN echo "export GOGS_CUSTOM=/data/gogs" >> /etc/profile

# Configure Docker Container
VOLUME ["/data"]
EXPOSE 22 3000
CMD ["./docker/start.sh"]
2 changes: 1 addition & 1 deletion docker/s6/openssh/run
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ then
chmod 600 /data/ssh/*
fi

exec gosu root /usr/sbin/sshd -D -f /etc/ssh/sshd_config
exec gosu root /usr/sbin/sshd -D -f /app/gogs/docker/sshd_config

0 comments on commit 3cad8d9

Please sign in to comment.