| 12345678910111213141516171819202122 | FROM alpine:3.3MAINTAINER jp@roemer.im# Install system utils & Gogs runtime dependenciesADD https://github.com/tianon/gosu/releases/download/1.9/gosu-amd64 /usr/sbin/gosuRUN chmod +x /usr/sbin/gosu \ && apk --no-cache --no-progress add ca-certificates bash git linux-pam s6 curl openssh socat tzdataENV 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/"]
 |