초기 버전 v1.0.0 구현

개인 NAS용 생존 확인 웹앱의 기본 기능, Docker 배포 설정, 설치 문서를 추가합니다.
This commit is contained in:
2026-06-10 11:48:06 +09:00
commit f7ee8cb923
24 changed files with 3593 additions and 0 deletions

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM node:20-alpine
WORKDIR /app
RUN apk add --no-cache tini
COPY package.json ./
RUN npm install --omit=dev
COPY . .
RUN chmod +x /app/scripts/*.sh \
&& mkdir -p /data
ENV NODE_ENV=production \
PORT=40100 \
CONFIG_PATH=/app/config/default.json \
DATABASE_PATH=/data/keeper.sqlite \
TRIGGER_SCRIPT=/scripts/cleanup.sh \
COLLECTION_PATH=/home/zenn/Collection
EXPOSE 40100
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["node", "src/server.js"]