Skip to content

Commit

Permalink
correct healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
trajano committed Jul 28, 2024
1 parent 02edb39 commit ebaa6b9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ RUN npm run build
FROM ci-stage AS build-storybook
RUN npm run build-storybook

FROM caddy:builder AS builder
RUN git clone https://github.com/trajano/caddy /mnt/
RUN xcaddy build \
--replace github.com/caddyserver/caddy/v2/modules/caddyhttp/tracing=/mnt/modules/caddyhttp/tracing
# FROM caddy:builder AS builder
# RUN git clone https://github.com/trajano/caddy /mnt/
# RUN xcaddy build \
# --replace github.com/caddyserver/caddy/v2/modules/caddyhttp/tracing=/mnt/modules/caddyhttp/tracing

FROM busybox:1.36.1-uclibc AS caddy
# FROM busybox:1.36.1-uclibc AS caddy
FROM caddy:alpine
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
COPY Caddyfile /etc/caddy/Caddyfile
COPY --from=build-stage /app/dist/ /usr/share/caddy/
COPY --from=build-storybook /app/storybook-static/ /usr/share/caddy/storybook/
HEALTHCHECK CMD /usr/bin/wget -q http://localhost/ -O /dev/null --spider || exit 1

0 comments on commit ebaa6b9

Please sign in to comment.