summaryrefslogtreecommitdiff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorkmeister <kris@aliencom.net>2017-04-11 14:43:25 -0400
committerkmeister <kris@aliencom.net>2017-04-11 14:48:34 -0400
commitf56f81bf42b8b738839b0cd3a3b9603322152e5d (patch)
treed2f8b82ed9058632690347957f437ac6e86dca4b /docker/Dockerfile
parent3f1d6b5df128973eb7c4c8a92c2b34fde2fb1ba0 (diff)
#72 docker file building ponzu
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 0000000..706b5c8
--- /dev/null
+++ b/docker/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 [ "" ]