mirror of
https://github.com/kovetskiy/mark.git
synced 2026-05-04 06:22:35 +00:00
add Dockerfile, Makefile
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user