Use gitea package registry.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
FROM golang:alpine AS build
|
||||
|
||||
MAINTAINER chris
|
||||
RUN apk add git --no-cache && \
|
||||
git clone https://github.com/mdlayher/apcupsd_exporter /tmp/build && \
|
||||
@@ -6,10 +7,13 @@ RUN apk add git --no-cache && \
|
||||
go build -o /go/bin/apcupsd_exporter /tmp/build/cmd/apcupsd_exporter/main.go
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk update && apk upgrade && apk add --no-cache libusb apcupsd
|
||||
|
||||
COPY apc-deamon.conf /etc/apcupsd/apcupsd.conf
|
||||
COPY entrypoint.sh /sbin/entrypoint.sh
|
||||
COPY --from=build /go/bin/apcupsd_exporter /sbin/apcupsd_exporter
|
||||
EXPOSE 9162 3551/tcp 3551/udp
|
||||
ENTRYPOINT ["sh", "/sbin/entrypoint.sh"]
|
||||
|
||||
EXPOSE 9162 3551/tcp 3551/udp
|
||||
|
||||
ENTRYPOINT ["sh", "/sbin/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user