You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
413 B
18 lines
413 B
2 years ago
|
FROM golang:1.15.2-alpine as build
|
||
|
|
||
|
ARG GOARCH=
|
||
|
ARG GO_BUILD_ARGS=
|
||
|
|
||
|
RUN mkdir /build
|
||
|
WORKDIR /build
|
||
|
COPY . .
|
||
|
|
||
|
RUN go build -v $GO_BUILD_ARGS -o /build/greenhouse-telemetry main.go
|
||
|
|
||
|
FROM alpine
|
||
|
WORKDIR /greenhouse-telemetry
|
||
|
|
||
|
COPY --from=build /build/greenhouse-telemetry /greenhouse-telemetry/greenhouse-telemetry
|
||
|
RUN mkdir -p /greenhouse-telemetry/config
|
||
|
|
||
|
ENTRYPOINT ["/greenhouse-telemetry/greenhouse-telemetry"]
|