Files
the-bible/Dockerfile
Ryderjj89 7a54eab291 Added complete NLT (New Living Translation) support and NKJV fixes
**NLT Integration:**
- Added NLT directory structure matching ESV/NKJV pattern
- Updated Dockerfile to COPY NLT /app/NLT
- Added NLT_DATA_DIR path and search engine initialization
- Updated getDataDir and /versions endpoints to support NLT
- Frontend will automatically include NLT in version dropdown

**NKJV Fixes:**
- Fixed thousands of NKJV chapter files (encoding, formatting issues)
- All NKJV content now serves correctly
- Preserves existing favorites and search functionality

**Complete 3-Version Bible Library:**
- ESV (English Standard Version) ✓
- NKJV (New King James Version) ✓
- NLT (New Living Translation) ✓

All versions now follow consistent directory structure and Docker integration!
2025-09-28 21:53:49 -04:00

56 lines
1.1 KiB
Docker

# Multi-stage Dockerfile for production deployment
FROM node:18-alpine AS base
# Production stage
# Backend stage
FROM base AS backend
WORKDIR /app/backend
COPY backend/package*.json ./
RUN npm install --omit=dev
# Frontend build stage
FROM base AS frontend-build
WORKDIR /app/frontend
COPY frontend/package*.json ./
COPY frontend/tsconfig.json ./
COPY frontend/tailwind.config.js ./
COPY frontend/postcss.config.js ./
RUN npm install
COPY frontend/public ./public
COPY frontend/src ./src
RUN npm run build
# Production stage
FROM base AS production
WORKDIR /app
# Copy backend
COPY backend ./backend
COPY --from=backend /app/backend/node_modules ./backend/node_modules
# Copy logos folder for frontend
COPY frontend/logos ./frontend/logos
# Copy built frontend
COPY --from=frontend-build /app/frontend/build ./frontend/build
# Copy docker-compose configuration
COPY docker-compose.yml ./
# Copy ESV Bible data from repository
COPY ESV /app/ESV
# Copy NKJV Bible data from repository
COPY NKJV /app/NKJV
# Copy NLT Bible data from repository
COPY NLT /app/NLT
# Expose port
EXPOSE 3000
# Start backend server
WORKDIR /app/backend
CMD ["npm", "start"]