FROM node:20-alpine WORKDIR /usr/src/app # Package-Dateien COPY package*.json ./ # Dev + Prod Dependencies (für TS-Build nötig) RUN npm install # Restlicher Sourcecode COPY . . # TypeScript Build RUN npm run build # Port freigeben EXPOSE 3100 # Start der App CMD ["node", "dist/src/index.js"]