Initial Release

This commit is contained in:
Philipp 2024-10-24 20:26:41 +02:00
commit 76ec4ba39f
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
31 changed files with 3023 additions and 0 deletions

29
Dockerfile Normal file
View file

@ -0,0 +1,29 @@
FROM --platform=$BUILDPLATFORM golang:1.23.2-alpine AS builder
ARG TARGETOS
ARG TARGETARCH
ENV GOOS=$TARGETOS
ENV GOARCH=$TARGETARCH
RUN apk add --no-cache make git bash
WORKDIR /build
COPY go.mod go.sum /build/
RUN go mod download
RUN go mod verify
COPY . /build/
RUN make build-binary
FROM busybox
LABEL maintainer="Philipp Holzer <admin@philipp.info>"
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /build/friendica-exporter /bin/friendica-exporter
USER nobody
EXPOSE 9205
ENTRYPOINT ["/bin/friendica-exporter"]