using debian again , we need chmod
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-17 13:45:08 +01:00
parent 5a96d89fc2
commit 123eeddf49

View File

@@ -8,10 +8,11 @@ WORKDIR /usr/src
RUN go install github.com/sapcc/mosquitto-exporter@latest
#RUN go mod download
FROM scratch
FROM cr.wks/debian-stable
LABEL source_repository="https://github.com/sapcc/mosquitto-exporter"
COPY --from=build --chmod=0755 /usr/src/gopath/bin/mosquitto-exporter /mosquitto-exporter
COPY --from=build /usr/src/gopath/bin/mosquitto-exporter /mosquitto-exporter
RUN chmod 0755 /mosquitto-exporter
EXPOSE 9234