chore: Remove obsolete Docker and environment configuration files

This commit is contained in:
Salman Qureshi
2025-08-20 20:09:00 +05:30
parent e0a91b1660
commit f4fdeba2dc
11 changed files with 0 additions and 131 deletions

View File

@@ -1,59 +0,0 @@
# Docker ignore patterns for backend
node_modules
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.nyc_output
coverage
# Environment files (except docker env)
.env
.env.local
.env.*.local
!.env.docker
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# Cache and temp directories
cache/
tmp/
temp/
# IDE files
.vscode/
.idea/
*.swp
*.swo
# OS files
.DS_Store
Thumbs.db
# Git
.git
.gitignore
# Docker files
Dockerfile*
docker-compose*
.dockerignore

View File

@@ -1,21 +0,0 @@
# Environment variables for Docker production deployment
NODE_ENV=production
SERVER_PORT=3001
SERVER_HOST=0.0.0.0
FRONTEND_URL=https://seedbox.<domain>
OMDB_API_KEY=trilogy
ACCESS_PASSWORD=seedbox123
# Cache and data directories
CACHE_DIR=/app/cache
DATA_DIR=/app/data
LOG_DIR=/app/logs
# Performance settings
MAX_CACHE_SIZE=5368709120
CLEANUP_INTERVAL=3600000
TORRENT_TIMEOUT=30000
# Security settings
ENABLE_CORS=true
TRUST_PROXY=true

View File

@@ -1,51 +0,0 @@
# Multi-stage build for production
FROM node:18-alpine AS builder
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci --only=production && npm cache clean --force
# Copy source code
COPY . .
# Remove unnecessary files
RUN rm -rf node_modules/.cache
# Production stage
FROM node:18-alpine AS production
# Install curl for healthcheck
RUN apk add --no-cache curl
# Create app user
RUN addgroup -g 1001 -S nodejs
RUN adduser -S nodejs -u 1001
# Set working directory
WORKDIR /app
# Copy node_modules and app from builder stage
COPY --from=builder --chown=nodejs:nodejs /app/node_modules ./node_modules
COPY --from=builder --chown=nodejs:nodejs /app/package*.json ./
COPY --chown=nodejs:nodejs . .
# Create directories for data and cache
RUN mkdir -p /app/data /app/cache /app/logs && chown -R nodejs:nodejs /app
# Switch to non-root user
USER nodejs
# Expose port
EXPOSE 3001
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD curl -f http://localhost:3001/api/health || exit 1
# Start the application
CMD ["node", "index.js"]

View File