build-container / build (push) Successful in 2m2s
Preferences lived only in the browser, so clearing it, using another device or the separate iOS home-screen storage lost them. They are now saved in /data/settings.json (the audiobooks sign-in encrypted), loaded at start-up, and existing browser-only values are uploaded once. A failed save is reported instead of silent. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
13 lines
320 B
Docker
13 lines
320 B
Docker
FROM node:22-alpine
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci --omit=dev
|
|
COPY server.js auth.js cal.js ics.js caldav.js tasks.js settings.js ./
|
|
COPY public ./public
|
|
ENV PORT=8080 DATA_DIR=/data
|
|
RUN mkdir -p /data && chown node:node /data
|
|
VOLUME /data
|
|
EXPOSE 8080
|
|
USER node
|
|
CMD ["node", "server.js"]
|