From 2456abbe0d2caa7db944dd30cfbfcc94e0255642 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Thu, 3 Oct 2019 12:35:33 -0700 Subject: [PATCH] more --- Dockerfile | 15 +++++++++++++++ Makefile | 3 +++ README.md | 7 +++++++ 3 files changed, 25 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..66f5e07 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM golang:1.13 as builder + +WORKDIR /go/src/github.com/sneak/pooteeweet +COPY . . + +RUN go get -v && make build + + +FROM alpine + +COPY --from=builder /go/src/github.com/sneak/pooteeweet/pooteeweet /bin/pooteeweet + +CMD /bin/pooteeweet + +# FIXME add testing diff --git a/Makefile b/Makefile index eae3316..9c7573b 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,9 @@ build: ./pooteeweet ./pooteeweet: *.go go build -o $@ $(GOFLAGS) . +clean: + rm pooteeweet + fmt: go fmt *.go diff --git a/README.md b/README.md new file mode 100644 index 0000000..4122f10 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# pooteetweet + +clone of a popular iot api to learn more net/http + +# author + +sneak [sneak@sneak.berlin](mailto:sneak@sneak.berlin)