한국어 배포판 2.0.0 통합과 신규 설치 및 업데이트 복구 검증
This commit is contained in:
+15
-5
@@ -1,5 +1,15 @@
|
||||
FROM triliumnext/notes:latest
|
||||
|
||||
COPY main.cjs /usr/src/app/main.cjs
|
||||
COPY translation.json /usr/src/app/public/translations/ko/translation.json
|
||||
COPY server.json /usr/src/app/assets/translations/ko/server.json
|
||||
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))"
|
||||
|
||||
Reference in New Issue
Block a user