From c321b543d1e1fa35b50673d3bb0baa075c5a6adb Mon Sep 17 00:00:00 2001 From: Stixx Date: Mon, 4 Nov 2024 18:31:08 +0100 Subject: [PATCH] fix: Dockerfile for Cloudron --- Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f06d4b1..9a5d791 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,14 +19,21 @@ RUN cd admin && pnpm build FROM base AS main COPY --from=prod-deps /app/node_modules /app/node_modules -COPY --from=build ./app/build ./build -COPY --from=build ./app/admin/dist ./admin/dist +COPY --from=build /app/build /app/build +COPY --from=build /app/admin/dist /app/admin/dist COPY ./public ./public +# Required by Cloudron +HEALTHCHECK CMD curl --fail http://localhost:3000 || exit 1 + +# Cloudron specific labels +LABEL cloudronManifestPath="CloudronManifest.json" + VOLUME [ "/app/data" ] EXPOSE 3000 ENV DEBUG="blossom-server,blossom-server:*" +ENV PORT=3000 ENTRYPOINT [ "node", "." ]