Skip to content
Snippets Groups Projects
Verified Commit 2082af0e authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Add healthcheck to docker container

parent 40e7e605
No related branches found
No related tags found
2 merge requests!84Remove development branch,!23Resolve "Refactor buckets into pinia store"
Pipeline #24746 passed
...@@ -7,3 +7,4 @@ ...@@ -7,3 +7,4 @@
* Show correct number of visible objects when searching for objects #28 * Show correct number of visible objects when searching for objects #28
### Internal ### Internal
* Use a central repository for the buckets and current user permissions to simplify complex interactions between components #29 * Use a central repository for the buckets and current user permissions to simplify complex interactions between components #29
* Add healthcheck to docker container
...@@ -11,6 +11,7 @@ RUN npm run build-only ...@@ -11,6 +11,7 @@ RUN npm run build-only
# production stage # production stage
FROM nginx:stable-alpine as production-stage FROM nginx:stable-alpine as production-stage
HEALTHCHECK --interval=35s --timeout=4s CMD curl -f http://localhost || exit 1
COPY --from=build-stage /app/dist /usr/share/nginx/html COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80 EXPOSE 80
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment