Skip to content

Commit

Permalink
chore: add health check
Browse files Browse the repository at this point in the history
  • Loading branch information
younes200 committed Nov 4, 2024
1 parent f931c2e commit a70a896
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ RUN \
#############################################
FROM base AS runner
WORKDIR /app
RUN apk add --no-cache ffmpeg
RUN apk add --no-cache ffmpeg curl

COPY --from=builder /app .

# Add healthcheck
HEALTHCHECK --interval=30s --timeout=3s --start-period=30s --retries=3 \
CMD curl -f http://localhost:3000/ || exit 1

CMD ["sh", "-c", "yarn prisma migrate:deploy & yarn frontend start"]
Empty file removed apps/frontend/src/state/hooks.ts
Empty file.

0 comments on commit a70a896

Please sign in to comment.