FROM triliumnext/notes@sha256:611a430016585d35b170eb9a0fa300ce76318f04a8ec0067549c4c52561b0c36 LABEL org.opencontainers.image.title="Trilium 이스톰 한국어판" \ org.opencontainers.image.version="2.0.0" \ org.opencontainers.image.source="https://gitea.itosm.co.kr/syskiller/triliumnext-korean-patch" USER root COPY release/app/ /usr/src/app/ COPY release/manifest.json /usr/src/app/korean-release.json RUN node -e "const fs=require('fs'),c=require('crypto'),m=require('./korean-release.json');for(const [p,v] of Object.entries(m.files)){const b=fs.readFileSync(p);if(b.length!==v.bytes||c.createHash('sha256').update(b).digest('hex')!==v.sha256)throw Error(p)}" \ && node --check /usr/src/app/main.cjs RUN find /usr/src/app/assets/doc_notes/en /usr/src/app/public/translations/ko /usr/src/app/assets/translations/ko -type d -exec chmod 755 {} \; \ && find /usr/src/app/assets/doc_notes/en /usr/src/app/public/translations/ko /usr/src/app/assets/translations/ko -type f -exec chmod 644 {} \; \ && chmod 644 /usr/src/app/main.cjs /usr/src/app/assets/db/demo.zip /usr/src/app/public/src/*.js /usr/src/app/public/src/emoji-ko.json ENV TZ=Asia/Seoul HEALTHCHECK --interval=10s --timeout=3s --start-period=60s --retries=6 \ CMD node -e "require('http').get('http://127.0.0.1:8080/api/health-check',r=>process.exit(r.statusCode===200?0:1)).on('error',()=>process.exit(1))"