Updated Docker to use local ESV copy instead of external mdbible clone
- **ESV data source**: Switched from external mdbible GitHub repo to local ESV directory - **Removed git clone**: No longer cloning from https://github.com/lguenth/mdbible.git - **Local ESV copy**: Now COPY ESV /app/bible-data instead of external pull - **Removed git dependency**: Cleaned up unnecessary git install in Dockerfile - **Updated comments**: Backend now correctly marked ESV as 'local files' Both ESV and NKJV now served from local repository files in Docker container!
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,8 +1,7 @@
|
||||
# Multi-stage Dockerfile for production deployment
|
||||
FROM node:18-alpine AS base
|
||||
|
||||
# Install git for cloning bible repository
|
||||
RUN apk add --no-cache git
|
||||
# Production stage
|
||||
|
||||
# Backend stage
|
||||
FROM base AS backend
|
||||
@@ -39,11 +38,8 @@ COPY --from=frontend-build /app/frontend/build ./frontend/build
|
||||
# Copy docker-compose configuration
|
||||
COPY docker-compose.yml ./
|
||||
|
||||
# Clone ESV Bible repository
|
||||
RUN git clone https://github.com/lguenth/mdbible.git /tmp/mdbible && \
|
||||
mkdir -p /app/bible-data && \
|
||||
cp -r /tmp/mdbible/by_chapter/* /app/bible-data/ && \
|
||||
rm -rf /tmp/mdbible
|
||||
# Copy ESV Bible data from repository
|
||||
COPY ESV /app/bible-data
|
||||
|
||||
# Copy NKJV Bible data from repository
|
||||
COPY NKJV /app/NKJV
|
||||
|
||||
@@ -36,7 +36,7 @@ app.use(express.static(path.join(__dirname, '../../frontend/build')));
|
||||
app.use('/logos', express.static(path.join(__dirname, '../../frontend/logos')));
|
||||
|
||||
// Bible data directories
|
||||
const ESV_DATA_DIR = path.join(__dirname, '../../bible-data'); // ESV from mdbible
|
||||
const ESV_DATA_DIR = path.join(__dirname, '../../bible-data'); // ESV local files
|
||||
const NKJV_DATA_DIR = path.join(__dirname, '../../NKJV'); // NKJV local files
|
||||
|
||||
// Initialize search engines for each version
|
||||
|
||||
Reference in New Issue
Block a user