From 42526e9c53ffd095c6e3e06dbfd39c1aefbe3277 Mon Sep 17 00:00:00 2001 From: gempir Date: Fri, 17 May 2019 21:24:35 +0200 Subject: [PATCH] add experimental dockerrfile --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9b2e0df --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM golang:latest +WORKDIR /go/src/github.com/gempir/justlog +COPY . . +RUN go get ./... +RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app . + +FROM alpine:latest +RUN apk --no-cache add ca-certificates +COPY --from=0 /go/src/github.com/gempir/justlog/app . +CMD ["./app --config=/etc/justlog.json"] +EXPOSE 8025 \ No newline at end of file