From 3ddd3307dcbbd26a1c317a11fc43e8ce03bada09 Mon Sep 17 00:00:00 2001 From: kmeister Date: Thu, 13 Apr 2017 18:03:39 -0400 Subject: [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 --- Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') 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 [ "" ] -- cgit v1.2.3 From d686a2a0d6c9d22464e470e715ccd759c0481de7 Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 14 Apr 2017 17:14:42 -0700 Subject: Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 706b5c8..03ebc44 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -# Base our image on an official, minimal image of our preferred goLang +# 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. -- cgit v1.2.3 From 2a3f4ba169462ee0493a1b25a7bcc00765eef3ea Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Fri, 14 Apr 2017 17:26:43 -0700 Subject: update to golang:latest --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 03ebc44..73446aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Base our image on an official, minimal image of our preferred golang -FROM golang:1.8.1 +FROM golang:latest # Note: The default golang docker image, already has the GOPATH env variable set. # GOPATH is located at /go -- cgit v1.2.3