imap_notification/Dockerfile
kriszcode b92ec64746 Add initial project structure with Docker support and configuration files
- Create .copilotignore and .dockerignore to exclude config files
- Add Dockerfile for building the application
- Introduce Makefile for Docker commands
- Create ReadMe.md with project description and usage instructions
- Add project.env for environment variables
- Implement example config.json and localization files (en.json, hu.json)
- Develop main application logic in main.js with IMAP monitoring and notification
- Define package.json with dependencies and scripts
2026-01-10 12:30:24 +01:00

18 lines
393 B
Docker

# Simple Node.js Dockerfile
FROM node:18-alpine
WORKDIR /usr/src/app
# Install dependencies (use package-lock.json if present)
COPY src ./
RUN npm install --only=production
# Use a non-root user for safety
RUN addgroup -S app && adduser -S -G app app
USER app
EXPOSE 3000
ENV NODE_ENV=production
# Start the app (change to ["npm","start"] if you use an npm script)
CMD ["node", "main.js"]