From cbdec8590443348ad43dd31c9b7b25145bc11902 Mon Sep 17 00:00:00 2001 From: Johannes Theiner Date: Mon, 20 Jul 2020 18:06:32 +0200 Subject: [PATCH] added Dockerfile --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0e4ed6f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM golang:1.14.6-alpine3.12 + +RUN mkdir /src + +ADD . /src + +WORKDIR /src + +RUN go mod download +RUN go build -o main . + +CMD["/app/main"] \ No newline at end of file