FROM node:22-alpine WORKDIR /app # openssl: erzeugt bei RVS_HTTP_TLS=true das interne Zertifikat RUN apk add --no-cache openssl # Erst package.json kopieren — Docker-Cache für npm install nutzen COPY package.json ./ RUN npm install --production # Restliche Dateien kopieren COPY . . EXPOSE 3000 CMD ["node", "server.js"]