mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-22 17:34:03 +03:00
Use app/docker folder for SSH Configureation
This commit is contained in:
parent
e63e0b3105
commit
3cad8d9492
@ -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 \
|
&& apk -U --no-progress add ca-certificates git linux-pam s6@edge curl openssh socat \
|
||||||
&& chmod +x /usr/sbin/gosu
|
&& chmod +x /usr/sbin/gosu
|
||||||
|
|
||||||
# Configure SSH
|
|
||||||
COPY docker/sshd_config /etc/ssh/sshd_config
|
|
||||||
|
|
||||||
# Configure Go and build Gogs
|
# Configure Go and build Gogs
|
||||||
ENV GOPATH /tmp/go
|
ENV GOPATH /tmp/go
|
||||||
ENV PATH $PATH:$GOPATH/bin
|
ENV PATH $PATH:$GOPATH/bin
|
||||||
@ -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 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
|
RUN echo "export GOGS_CUSTOM=/data/gogs" >> /etc/profile
|
||||||
|
|
||||||
|
# Configure Docker Container
|
||||||
VOLUME ["/data"]
|
VOLUME ["/data"]
|
||||||
EXPOSE 22 3000
|
EXPOSE 22 3000
|
||||||
CMD ["./docker/start.sh"]
|
CMD ["./docker/start.sh"]
|
||||||
|
@ -12,4 +12,4 @@ then
|
|||||||
chmod 600 /data/ssh/*
|
chmod 600 /data/ssh/*
|
||||||
fi
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user