mirror of
https://github.com/napnap75/multiarch-docker-images.git
synced 2026-02-05 10:28:59 +01:00
Added docker2mqtt
This commit is contained in:
15
docker2mqtt/Dockerfile
Normal file
15
docker2mqtt/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM golang:alpine AS builder
|
||||
|
||||
WORKDIR $GOPATH/src/napnap75/docker2mqtt/
|
||||
|
||||
COPY docker2mqtt.go .
|
||||
|
||||
RUN apk add --no-cache git gcc musl-dev \
|
||||
&& go mod init github.com/napnap75/multiarch-docker-images/docker2mqtt \
|
||||
&& go get -d -v \
|
||||
&& go build -ldflags="-w -s" -o /go/bin/docker2mqtt
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
COPY --from=builder /go/bin/docker2mqtt /usr/bin/
|
||||
ENTRYPOINT ["/usr/bin/docker2mqtt"]
|
||||
Reference in New Issue
Block a user