production-evyos-systems-an.../ServicesApi/Dockerfile.dev

24 lines
435 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM node:20-alpine
WORKDIR /usr/src/app
# Npm güncelle (opsiyonel)
RUN npm install -g npm@latest
# Global Nest CLI kur (start:dev için)
RUN npm install -g @nestjs/cli
# package.json ve lock dosyalarını kopyala
COPY backend/package*.json ./
# Tüm bağımlılıkları kur (dev + prod)
RUN npm ci
# Kodları kopyala
COPY backend .
# Uygulamayı dev modda başlat (hot reload ile)
CMD ["npm", "run", "start:dev"]
EXPOSE 3000