add Dockerfile, Makefile

This commit is contained in:
Egor Kovetskiy
2019-03-26 14:42:26 +03:00
parent 1a69a00422
commit 1b1361f30b
3 changed files with 85 additions and 24 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM golang:latest
ENV GOPATH="/go/"
ENV GO111MODULE="on"
WORKDIR /go/src/mark
COPY / .
RUN make get
RUN make build
FROM alpine:latest
RUN apk --no-cache add ca-certificates bash
WORKDIR /
COPY --from=0 /go/src/mark/mark /bin/
ENTRYPOINT ["/bin/mark"]