File: Dockerfile.artifacts

package info (click to toggle)
prometheus-pgbackrest-exporter 0.19.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 480 kB
  • sloc: sh: 141; makefile: 136
file content (14 lines) | stat: -rw-r--r-- 409 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM goreleaser/goreleaser:v2.5.0 as builder
WORKDIR /build
COPY . /build
RUN goreleaser release --snapshot --skip=publish --clean

FROM alpine:3.20
COPY --from=builder /build/dist/ /dist/
RUN mkdir -p /artifacts && \
    cp /dist/*.tar.gz /artifacts/ && \
    cp /dist/*.rpm /artifacts/ && \
    cp /dist/*.deb /artifacts/ && \
    cp /dist/*.txt /artifacts/ && \
    ls -la /artifacts/*
CMD ["sleep", "150"]