From 0852e33cd183b13cf911fb794ad512f6160ed216 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Fri, 3 May 2019 21:21:11 -0400 Subject: [PATCH] Copy our build output into a folder we can serve (static content; pwa) --- dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dockerfile b/dockerfile index 3c0f245d6..b3e5c7b90 100644 --- a/dockerfile +++ b/dockerfile @@ -32,3 +32,8 @@ RUN luarocks install lua-resty-jwt RUN luarocks install lua-resty-http RUN luarocks install lua-resty-openidc RUN luarocks install luacrypto + +# Copy build output to image +COPY --from=builder /usr/src/app/build /var/www/html + +ENTRYPOINT ["/usr/local/openresty/nginx/sbin/nginx", "-g", "daemon off;"]