| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | FROM golang:alpine3.10 AS binarybuilderRUN apk --no-cache --no-progress add --virtual \  build-deps \  build-base \  git \  linux-pam-devWORKDIR /go/src/github.com/gogs/gogsCOPY . .RUN make build-no-gen TAGS="sqlite cert pam"FROM alpine:3.10ADD https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64 /usr/sbin/gosuRUN chmod +x /usr/sbin/gosu \  && echo http://dl-2.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories \  && apk --no-cache --no-progress add \  bash \  ca-certificates \  curl \  git \  linux-pam \  openssh \  s6 \  shadow \  socat \  tzdata \  rsyncENV GOGS_CUSTOM /data/gogs# Configure LibC Name ServiceCOPY docker/nsswitch.conf /etc/nsswitch.confWORKDIR /app/gogsCOPY docker ./dockerCOPY --from=binarybuilder /go/src/github.com/gogs/gogs/gogs .RUN ./docker/finalize.sh# Configure Docker ContainerVOLUME ["/data"]EXPOSE 22 3000ENTRYPOINT ["/app/gogs/docker/start.sh"]CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]
 |