| 123456789101112131415161718192021222324 | FROM alpine:3.5# 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/buildWORKDIR /app/gogs/buildRUN    ./docker/build-go.sh \    && ./docker/build.sh \    && ./docker/finalize.sh# Configure LibC Name ServiceCOPY docker/nsswitch.conf /etc/nsswitch.conf# Configure Docker ContainerVOLUME ["/data"]EXPOSE 22 3000ENTRYPOINT ["/app/gogs/docker/start.sh"]CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]
 |