mirror of
https://github.com/nikdoof/hg612-exporter.git
synced 2025-12-14 02:32:15 +00:00
init
This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM golang:alpine as build
|
||||
WORKDIR /build
|
||||
COPY . .
|
||||
RUN go get -d -v .
|
||||
RUN go build -v -o app .
|
||||
|
||||
FROM alpine
|
||||
WORKDIR /service
|
||||
COPY --from=build /build/app .
|
||||
ENTRYPOINT ["./app"]
|
||||
Reference in New Issue
Block a user