V 2.03 Noch ein paar Anpassungen

This commit is contained in:
2026-04-01 14:14:15 +02:00
parent 6d1d60a9c1
commit 96a54b69d2
8 changed files with 77 additions and 37 deletions

27
Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
FROM node:18-alpine
ADD package.json /tmp/package.json
RUN cd /tmp && npm install
RUN mkdir -p /opt/app && cp -a /tmp/node_modules /tmp/package.json /opt/app/
WORKDIR /opt/app
ADD . /opt/app
ADD crontab.tmp /opt/app
RUN mkdir -p data
#RUN apk add busybox-initscripts
#RUN apk add --no-cache tzdata
#ENV TZ Europe/Berlin
#RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN crontab crontab.tmp
RUN deluser --remove-home node
RUN touch cmds.sh \
&& echo 'crond -f' >>cmds.sh
CMD sh ./cmds.sh