diff options
author | kmeister <kris@aliencom.net> | 2017-04-13 18:03:39 -0400 |
---|---|---|
committer | kmeister <kris@aliencom.net> | 2017-04-13 18:03:39 -0400 |
commit | 3ddd3307dcbbd26a1c317a11fc43e8ce03bada09 (patch) | |
tree | 44e9cc3928b9eae6fda899018b85353418e697d0 /Dockerfile | |
parent | e8b02fa2be50e8972cdf163022dfa7eb2c524821 (diff) |
[docker] this setup will make it easier to add builds https://docs.docker.com/docker-hub/builds/#use-the-build-settings-page#add-and-run-a-new-build
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..706b5c8 --- /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 [ "" ] |