diff --git a/Dockerfile b/Dockerfile index 89b70665..b39fb872 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/apps/frontend/src/state/hooks.ts b/apps/frontend/src/state/hooks.ts deleted file mode 100644 index e69de29b..00000000