diff options
| author | Shyam Sunder <sgsunder1@gmail.com> | 2018-09-03 17:36:06 -0400 |
|---|---|---|
| committer | rr- <rr-@sakuya.pl> | 2018-12-22 12:31:25 +0100 |
| commit | a5a06bf2d10b2a2e16ae3e91cf119c56cb050532 (patch) | |
| tree | 6f8d261352e9d287125445155cf3de9cb0312a77 /client/Dockerfile | |
| parent | e6445b431f9f155b4511d8ceeffaf3a3fded425b (diff) | |
client/build: Clean up build process
Fixes incorrect URIs of iOS splash screens and OpenSans font
Files get gzipped inside build script
Better nginx configuration
build.js uses more consistent, synchronous code
Diffstat (limited to 'client/Dockerfile')
| -rw-r--r-- | client/Dockerfile | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/client/Dockerfile b/client/Dockerfile index 69555a4..a3d0ffc 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -8,10 +8,7 @@ COPY . ./ ARG BUILD_INFO="docker-latest" ARG CLIENT_BUILD_ARGS="" -RUN BASE_URL="__BASEURL__" node build.js ${CLIENT_BUILD_ARGS} - -RUN find public/ -name public/index.html -prune -o -type f -size +5k \ - -print0 | xargs -0 -- gzip -6 -k +RUN BASE_URL="__BASEURL__" node build.js --gzip ${CLIENT_BUILD_ARGS} FROM nginx:alpine @@ -23,7 +20,7 @@ RUN \ echo 'sed -i "s|__BACKEND__|${BACKEND_HOST}|" /etc/nginx/nginx.conf' \ >> /init && \ echo 'sed -i "s|__BASEURL__|${BASE_URL:-/}|" /var/www/index.htm' >> /init && \ - echo 'exec nginx -g "daemon off;"' >> /init && \ + echo 'exec nginx' >> /init && \ chmod a+x /init CMD ["/init"] |