Files
mail-worker/Dockerfile

18 lines
474 B
Docker
Raw Permalink 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.
# Hafif bir Node.js imajı kullanalım
FROM node:20-slim
# Docker CLI'ı içine kuruyoruz (Çünkü Worker, Dovecot konteynerine komut gönderecek)
RUN apt-get update && apt-get install -y docker.io && rm -rf /var/lib/apt/lists/*
# Çalışma dizini
WORKDIR /app
# Paket listelerini kopyala ve bağımlılıkları kur
COPY package*.json ./
RUN npm install --production
# Tüm kodları ve .env dosyasını kopyala
COPY . .
# Uygulamayı başlat
CMD ["node", "worker.js"]