From eb4aa40342826451a70db5eda137f2731f750607 Mon Sep 17 00:00:00 2001 From: Nicolas Lacasse Date: Thu, 29 Aug 2019 13:17:48 -0700 Subject: Compile procter binaries during image creation. Using "go run ..." in the ENTRYPOINT causes the go compiler to run each time the container is started. We can just compile the binary once as part of the image. PiperOrigin-RevId: 266212462 --- test/runtimes/php/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/runtimes/php/Dockerfile') diff --git a/test/runtimes/php/Dockerfile b/test/runtimes/php/Dockerfile index 491ab902d..d79babe58 100644 --- a/test/runtimes/php/Dockerfile +++ b/test/runtimes/php/Dockerfile @@ -26,5 +26,6 @@ RUN make COPY common /root/go/src/gvisor.dev/gvisor/test/runtimes/common/common COPY php/proctor-php.go ${LANG_DIR} +RUN ["/root/go/bin/go", "build", "-o", "/root/go/bin/proctor", "proctor-php.go"] -ENTRYPOINT ["/root/go/bin/go", "run", "proctor-php.go"] +ENTRYPOINT ["/root/go/bin/proctor"] -- cgit v1.2.3