# Use the official Node.js image. FROM node:18 # OPTIONAL: Falls in der Base kein Chrome enthalten ist, # müsstest du hier noch "apt-get update" + "apt-get install chromium" oder ähnliches ausführen, # z. B.: RUN apt-get update && apt-get install -y chromium # Create and change to the app directory. WORKDIR /app # Copy application dependency manifests to the container image. COPY package*.json ./ # Install production dependencies. RUN npm install # Copy local code to the container image. COPY . . # Build the TypeScript code RUN npm run build # Run the web service on container startup. CMD ["node", "dist/index.js"]