From 96aa142a1c5551784a53f1a61985921b4840f0d0 Mon Sep 17 00:00:00 2001 From: yeomin7 Date: Thu, 8 Sep 2016 13:46:50 +0800 Subject: [PATCH] Create Dockerfile --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bcf2713 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ + #Base Image for Golang Project + FROM golang:1.5 + #Port Number to expose from docker container to host server + EXPOSE 8888 + #Working directory path where your code exists + WORKDIR /go/src/app + #Copy source from host machine to docker container + COPY . /go/src/app + #Adding permission to access .shipped folder + RUN chmod a+x .shipped/build .shipped/run .shipped/test + #provide your build/run commands + RUN [".shipped/build"] + CMD .shipped/run