This repository was archived by the owner on Jun 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ WORKDIR /home/${USER}/app
2626COPY ./dist /home/${USER}/app
2727# Also copy the rootless entrypoint script
2828COPY rootless-entrypoint.sh /home/${USER}/app/
29- RUN chmod +x /home/${USER}/app/rootless-entrypoint.sh
3029RUN rm -rf /home/${USER}/app/node_modules/better-sqlite3
3130COPY --from=builder /usr/src/app/node_modules/better-sqlite3 /home/${USER}/app/node_modules/better-sqlite3
3231RUN chown -R ${USER}:${USER} /home/${USER}
@@ -45,6 +44,6 @@ ENV TRILIUM_DATA_DIR=/home/${USER}/trilium-data
4544ENTRYPOINT ["/usr/bin/dumb-init", "--"]
4645
4746# Use the entrypoint script
48- CMD /home/${USER}/app/ rootless-entrypoint.sh
47+ CMD [ "bash", "./ rootless-entrypoint.sh" ]
4948
5049HEALTHCHECK --start-period=10s CMD node /home/${USER}/app/docker_healthcheck.js
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ WORKDIR /home/${USER}/app
2828COPY ./dist /home/${USER}/app
2929# Also copy the rootless entrypoint script
3030COPY rootless-entrypoint.sh /home/${USER}/app/
31- RUN chmod +x /home/${USER}/app/rootless-entrypoint.sh
3231RUN rm -rf /home/${USER}/app/node_modules/better-sqlite3
3332COPY --from=builder /usr/src/app/node_modules/better-sqlite3 /home/${USER}/app/node_modules/better-sqlite3
3433RUN chown -R ${USER}:${USER} /home/${USER}
@@ -44,6 +43,6 @@ ENV TRILIUM_GID=${GID}
4443ENV TRILIUM_DATA_DIR=/home/${USER}/trilium-data
4544
4645# Use the entrypoint script
47- CMD /home/${USER}/app/ rootless-entrypoint.sh
46+ CMD [ "bash", "./ rootless-entrypoint.sh" ]
4847
4948HEALTHCHECK --start-period=10s CMD node /home/${USER}/app/docker_healthcheck.js
Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/bash
22# Rootless entrypoint script for Trilium Notes
33# Works with both Debian and Alpine-based images
44
You can’t perform that action at this time.
0 commit comments