diff options
author | Steve <nilslice@gmail.com> | 2017-04-14 17:33:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-14 17:33:44 -0700 |
commit | fcb69059f0ef206efafffa6abc10dd4245280d12 (patch) | |
tree | 7f9da51f9669ee4fba8dd2d82ec6618e157fe6b6 | |
parent | 5713e55f3028f72382dafca5e0f3fcec652b493a (diff) | |
parent | 2a3f4ba169462ee0493a1b25a7bcc00765eef3ea (diff) |
Merge pull request #125 from ponzu-cms/ponzu-dev
[docker] add Dockerfile for building Ponzu
-rw-r--r-- | Dockerfile | 27 |
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 [ "" ] |