Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
FROM --platform=$BUILDPLATFORM pscale.dev/wolfi-prod/go:1.23 AS build
ARG TARGETOS
ARG TARGETARCH
RUN apk --no-cache add curl
RUN apk --no-cache add curl inotify-tools
COPY . /postgres_exporter
RUN rm -f /postgres_exporter/postgres_exporter
RUN CGO_ENABLED=0 GOOS="$TARGETOS" GOARCH="$TARGETARCH" make -C /postgres_exporter build

FROM pscale.dev/wolfi-prod/base:latest
COPY --from=build /postgres_exporter/postgres_exporter /bin/postgres_exporter
COPY --from=build /bin/inotifywait /bin/inotifywait
COPY --from=build /lib/libinotifytools.so.0 /lib/libinotifytools.so.0
EXPOSE 9187
USER nobody
WORKDIR /
Expand Down