security: obfuscate sensitive data in README and .env
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -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"]
|
||||
Reference in New Issue
Block a user