mirror of
https://git.cloudron.io/cloudron/gitea-app.git
synced 2024-11-21 23:50:59 +00:00
31 lines
901 B
Docker
31 lines
901 B
Docker
FROM girish/base:0.2.0
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y openssh-server && \
|
|
rm -r /var/cache/apt /var/lib/apt/lists
|
|
|
|
ADD supervisor/ /etc/supervisor/conf.d/
|
|
|
|
ENV GOPATH /home/cloudron
|
|
RUN mkdir -p /home/cloudron/gogs/
|
|
|
|
## TODO: use redis as well
|
|
RUN mkdir -p ${GOPATH}/src/github.com/gogits && \
|
|
cd ${GOPATH}/src/github.com/gogits && \
|
|
git clone https://github.com/cloudron-io/gogs.git && \
|
|
cd gogs && \
|
|
go get ./... && \
|
|
go build && \
|
|
go install && \
|
|
mv ${GOPATH}/bin/gogs /home/cloudron/gogs/
|
|
|
|
ADD app.ini.template /home/cloudron/app.ini.template
|
|
ADD start.sh /home/cloudron/start.sh
|
|
|
|
# disable pam authentication for sshd
|
|
RUN sed 's/UsePAM yes/UsePAM no/' -i /etc/ssh/sshd_config
|
|
RUN sed 's/UsePrivilegeSeparation yes/UsePrivilegeSeparation no/' -i /etc/ssh/sshd_config
|
|
RUN echo "UseDNS no" >> /etc/ssh/sshd_config
|
|
|
|
CMD [ "/home/cloudron/start.sh" ]
|
|
|