| 12345678910111213141516171819202122232425 | FROM alpine:3.2MAINTAINER jp@roemer.im# Install system utils & Gogs runtime dependenciesADD https://github.com/tianon/gosu/releases/download/1.6/gosu-amd64 /usr/sbin/gosuRUN echo "@edge http://dl-4.alpinelinux.org/alpine/edge/main" | tee -a /etc/apk/repositories \ && echo "@community http://dl-4.alpinelinux.org/alpine/edge/community" | tee -a /etc/apk/repositories \ && apk -U --no-progress upgrade \ && apk -U --no-progress add ca-certificates bash git linux-pam s6@edge curl openssh socat \ && chmod +x /usr/sbin/gosuENV GOGS_CUSTOM /data/gogsCOPY . /app/gogs/WORKDIR /app/gogs/RUN ./docker/build.sh# Configure LibC Name ServiceCOPY docker/nsswitch.conf /etc/nsswitch.conf# Configure Docker ContainerVOLUME ["/data"]EXPOSE 22 3000ENTRYPOINT ["docker/start.sh"]CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]
 |