mirror of
https://git.friendi.ca/friendica/friendica-exporter.git
synced 2025-06-07 09:54:26 +02:00
Initial Release
This commit is contained in:
commit
76ec4ba39f
31 changed files with 3023 additions and 0 deletions
29
Dockerfile
Normal file
29
Dockerfile
Normal 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"]
|
Loading…
Add table
Add a link
Reference in a new issue