experimental features and copy chmod
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -14,6 +14,7 @@ local build(dir, package) = {
|
||||
dockerfile: '%(dir)s/%(package)s/Dockerfile' % { dir: dir, package: package },
|
||||
registry: 'http://cr.wks',
|
||||
insecure: 'true',
|
||||
experimental: 'true',
|
||||
tags: ['latest'],
|
||||
repo: 'cr.wks/%(package)s' % { package: package },
|
||||
},
|
||||
|
||||
@@ -6,13 +6,12 @@ ENV GOCACHE=/usr/src/gocache
|
||||
RUN go env
|
||||
WORKDIR /usr/src
|
||||
RUN go install github.com/sapcc/mosquitto-exporter@latest
|
||||
RUN chmod 0755 /usr/src/gopath/bin/mosquitto-exporter
|
||||
#RUN go mod download
|
||||
|
||||
FROM scratch
|
||||
LABEL source_repository="https://github.com/sapcc/mosquitto-exporter"
|
||||
|
||||
COPY --from=build /usr/src/gopath/bin/mosquitto-exporter /mosquitto-exporter
|
||||
COPY --from=build --chmod=0755 /usr/src/gopath/bin/mosquitto-exporter /mosquitto-exporter
|
||||
|
||||
EXPOSE 9234
|
||||
|
||||
|
||||
Reference in New Issue
Block a user