security: obfuscate sensitive data in README and .env

This commit is contained in:
AyrisAI
2026-05-14 19:18:24 +03:00
parent 98f92b1b2b
commit dc501566d9
4 changed files with 27 additions and 9 deletions

View File

@@ -1,14 +1,18 @@
FROM node:20-alpine
# Hafif bir Node.js imajı kullanalım
FROM node:20-slim
# Install docker cli to be able to run 'docker exec' from within the container
# Note: You must mount /var/run/docker.sock when running this container
RUN apk add --no-cache docker-cli
# 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 . .
CMD ["npm", "start"]
# Uygulamayı başlat
CMD ["node", "worker.js"]