ADD file:e8aac9b1598114ead96b4038c19d915b87f662ef342291d69c7e5255c5d731fc in / |
CMD ["bash"] |
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; rm -rf /var/lib/apt/lists/* |
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; rm -rf /var/lib/apt/lists/* |
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends g++ gcc libc6-dev make pkg-config ; rm -rf /var/lib/apt/lists/* # buildkit |
ENV GOLANG_VERSION=1.22.5 |
ENV GOTOOLCHAIN=local |
ENV GOPATH=/go |
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
COPY /target/ / # buildkit |
RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit |
WORKDIR /go |
WORKDIR /app |
COPY multi:44fcd6b9b943715bc5b1ab9cc113e05de97d3bcc30a26c0b9561f65256a93f28 in ./ |
/bin/sh -c go mod download |
COPY dir:9a4b74f5362dc6f46ea969790cfdba5b2cbd1fb10193492df4b0fc701f5a45ed in . |
/bin/sh -c go build -o /app/backup-notify |
EXPOSE 8080 |
CMD ["/app/backup-notify" "--server" "--migrate" "--port" "8080" "--template-path" "/app/templates" "--database-path" "/app/db/nackupnotify.db" "--static-path" "/app/static" "--scheduler" "--ntfy-endpoint" "https://ntfy.simponic.hatecomputers.club" "--ntfy-topics" "server-backups,canary" "--ntfy-alert-topics" "alerts"] |
LABEL org.opencontainers.image.created=2024-07-06T23:42:08Z |
LABEL org.opencontainers.image.revision=e20896a8f3a1bdead2d9b4d3b162b7285ee167b4 |
LABEL org.opencontainers.image.source=https://git.simponic.xyz/simponic/backup-notify.git |
LABEL org.opencontainers.image.url=https://git.simponic.xyz/simponic/backup-notify |