more
This commit is contained in:
parent
282e902b0a
commit
2456abbe0d
15
Dockerfile
Normal file
15
Dockerfile
Normal 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
|
3
Makefile
3
Makefile
@ -20,6 +20,9 @@ build: ./pooteeweet
|
|||||||
./pooteeweet: *.go
|
./pooteeweet: *.go
|
||||||
go build -o $@ $(GOFLAGS) .
|
go build -o $@ $(GOFLAGS) .
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm pooteeweet
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
go fmt *.go
|
go fmt *.go
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user