summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..73446aa
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,27 @@
+
+# Base our image on an official, minimal image of our preferred golang
+FROM golang:latest
+
+# 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 [ "" ]