Skip to content
Snippets Groups Projects
Commit 8868ee06 authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Merge branch 'bugfix/62-fix-typo-in-healthcheck-of-dockerfile' into 'development'

Resolve "Fix typo in healthcheck of dockerfile"

Closes #62

See merge request !56
parents 2af1b719 7552b63c
No related branches found
No related tags found
2 merge requests!84Remove development branch,!56Resolve "Fix typo in healthcheck of dockerfile"
Pipeline #36632 passed
# build stage # build stage
FROM node:18 as build-stage FROM node:18 as build-stage
WORKDIR /app WORKDIR /app
HEALTHCHECK --interval=35s --timeout=4s CMD curl -f http://localhost || exit 1
# RUN apk add yarn # RUN apk add yarn
COPY package.json ./ COPY package.json ./
COPY package-lock.json ./ COPY package-lock.json ./
...@@ -11,7 +10,7 @@ RUN npm run build-only ...@@ -11,7 +10,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=305s --timeout=4s CMD curl --head -f http://localhost || exit 1 HEALTHCHECK --interval=30s --timeout=4s CMD curl --head -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 --from=build-stage /app/src/assets/env.template.js /tmp COPY --from=build-stage /app/src/assets/env.template.js /tmp
COPY nginx.conf /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/conf.d/default.conf
......
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