From 97d3c9eefaf0331bbb1a0c167ef7d620237a08a5 Mon Sep 17 00:00:00 2001 From: Marcos Caputo Date: Sun, 29 Jan 2017 12:24:04 -0200 Subject: [PATCH] Add Dockerfile docker build -t hacker-slides:0.1 . docker run -p 8000:8080 hacker-slides:0.1 --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bb4c047 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM golang:onbuild + +RUN mkdir -p /app + +WORKDIR /app + +ADD . /app + +RUN go build ./main.go + +CMD ["./main"]