Dockerfile umbenannt in sensoreapi_i

in Build_and_copy ebenfalls angepasst
This commit is contained in:
2025-11-22 13:27:06 +00:00
parent f903b5508a
commit d7343c2e3c
2 changed files with 2 additions and 2 deletions

23
Dockerfile_sensorapi_i Normal file
View File

@@ -0,0 +1,23 @@
FROM node:alpine
ADD package.json /tmp/package.json
RUN cd /tmp && npm install
RUN mkdir -p /opt/app && cp -a /tmp/node_modules /opt/app/
WORKDIR /opt/app
ADD . /opt/app
# 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 deluser --remove-home node
RUN touch cmds.sh \
&& echo 'npm start' >>cmds.sh
CMD sh ./cmds.sh