summaryrefslogtreecommitdiffhomepage
path: root/test/runtimes/images/Dockerfile_go1.12
diff options
context:
space:
mode:
Diffstat (limited to 'test/runtimes/images/Dockerfile_go1.12')
-rw-r--r--test/runtimes/images/Dockerfile_go1.1210
1 files changed, 10 insertions, 0 deletions
diff --git a/test/runtimes/images/Dockerfile_go1.12 b/test/runtimes/images/Dockerfile_go1.12
new file mode 100644
index 000000000..ab9d6abf3
--- /dev/null
+++ b/test/runtimes/images/Dockerfile_go1.12
@@ -0,0 +1,10 @@
+# Go is easy, since we already have everything we need to compile the proctor
+# binary and run the tests in the golang Docker image.
+FROM golang:1.12
+ADD ["proctor/", "/go/src/proctor/"]
+RUN ["go", "build", "-o", "/proctor", "/go/src/proctor"]
+
+# Pre-compile the tests so we don't need to do so in each test run.
+RUN ["go", "tool", "dist", "test", "-compile-only"]
+
+ENTRYPOINT ["/proctor", "--runtime=go"]