more
This commit is contained in:
parent
282e902b0a
commit
2456abbe0d
|
@ -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
|
||||
go build -o $@ $(GOFLAGS) .
|
||||
|
||||
clean:
|
||||
rm pooteeweet
|
||||
|
||||
fmt:
|
||||
go fmt *.go
|
||||
|
||||
|
|
Loading…
Reference in New Issue