This commit is contained in:
Jeffrey Paul 2019-10-03 12:35:33 -07:00
parent 282e902b0a
commit 2456abbe0d
3 changed files with 25 additions and 0 deletions

15
Dockerfile Normal file
View File

@ -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

View File

@ -20,6 +20,9 @@ build: ./pooteeweet
./pooteeweet: *.go
go build -o $@ $(GOFLAGS) .
clean:
rm pooteeweet
fmt:
go fmt *.go

7
README.md Normal file
View File

@ -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)