| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | FROM golang:alpine3.17 AS binarybuilderRUN apk --no-cache --no-progress add --virtual \  build-deps \  build-base \  git \  linux-pam-devWORKDIR /gogs.io/gogsCOPY . .RUN ./docker/build/install-task.shRUN TAGS="cert pam" task buildFROM alpine:3.17RUN 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 /gogs.io/gogs/gogs .RUN ./docker/build/finalize.sh# Configure Docker ContainerVOLUME ["/data", "/backup"]EXPOSE 22 3000HEALTHCHECK CMD (curl -o /dev/null -sS http://localhost:3000/healthcheck) || exit 1ENTRYPOINT ["/app/gogs/docker/start.sh"]CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]
 |