summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorSteve <nilslice@gmail.com>2017-04-14 17:20:36 -0700
committerGitHub <noreply@github.com>2017-04-14 17:20:36 -0700
commit6268615c2b4590eb8a0ed47bb98d099d70aa0fba (patch)
tree73601233baf9816b8ad6a19bd1ae0fd50247cc2f /Dockerfile
parent0ab0ebb14e5794473f312f173c3a7438c1ab2bac (diff)
parent1cee00148b32a23349b9569dc6c9fba187888767 (diff)
Merge pull request #115 from krismeister/ponzu-dev
[docker] Development Dockerfile for ponzu
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..03ebc44
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,27 @@
+
+# Base our image on an official, minimal image of our preferred golang
+FROM golang:1.8.1
+
+# Note: The default golang docker image, already has the GOPATH env variable set.
+# GOPATH is located at /go
+ENV GO_SRC $GOPATH/src
+ENV PONZU_GITHUB github.com/ponzu-cms/ponzu
+ENV PONZU_ROOT $GO_SRC/$PONZU_GITHUB
+
+# Consider updating package in the future. For instance ca-certificates etc.
+# RUN apt-get update -qq && apt-get install -y build-essential
+
+# Make the ponzu root directory
+RUN mkdir -p $PONZU_ROOT
+
+# All commands will be run inside of ponzu root
+WORKDIR $PONZU_ROOT
+
+# Copy the ponzu source into ponzu root.
+COPY . .
+
+# the following runs the code inside of the $GO_SRC/$PONZU_GITHUB directory
+RUN go get $PONZU_GITHUB...
+
+# Define the scripts we want run once the container boots
+# CMD [ "" ]