chmod befor copy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-17 12:13:54 +01:00
parent 3477d59e07
commit 296ab18421

View File

@@ -6,13 +6,13 @@ ENV GOCACHE=/usr/src/gocache
RUN go env RUN go env
WORKDIR /usr/src WORKDIR /usr/src
RUN go install github.com/sapcc/mosquitto-exporter@latest RUN go install github.com/sapcc/mosquitto-exporter@latest
RUN chmod 0755 /usr/src/gopath/bin/mosquitto-exporter
#RUN go mod download #RUN go mod download
FROM scratch FROM scratch
LABEL source_repository="https://github.com/sapcc/mosquitto-exporter" LABEL source_repository="https://github.com/sapcc/mosquitto-exporter"
COPY --from=build /usr/src/gopath/bin/mosquitto-exporter /mosquitto-exporter COPY --from=build /usr/src/gopath/bin/mosquitto-exporter /mosquitto-exporter
RUN chmod 0755 /mosquitto-exporter && ls -la /
EXPOSE 9234 EXPOSE 9234