Files

29 lines
511 B
Docker
Raw Permalink Normal View History

2026-01-02 21:21:28 -03:00
FROM node:24-alpine
# Install netcat for healthcheck
RUN apk add --no-cache netcat-openbsd
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci --only=production
# Copy application files
COPY src/ ./src/
# Create directories for logs and data
RUN mkdir -p /app/logs /app/data
# Expose SMTP port
EXPOSE 2525
# Set environment variable for config path
ENV CONFIG_PATH=/app/config/config.json
# Run the application
CMD ["node", "src/index.js"]