MOBILE-3320 DX: Add docker healthcheck command

main
Noel De Martin 2021-07-06 11:18:07 +02:00
parent fd49ee7057
commit ce451e9a1d
1 changed files with 1 additions and 0 deletions

View File

@ -19,3 +19,4 @@ FROM nginx:alpine as serve-stage
# Copy assets & config # Copy assets & config
COPY --from=build-stage /app/www /usr/share/nginx/html COPY --from=build-stage /app/www /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/conf.d/default.conf COPY ./nginx.conf /etc/nginx/conf.d/default.conf
HEALTHCHECK --interval=10s --timeout=4s CMD curl -f http://localhost/assets/env.json || exit 1