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
|
||||
|
||||
Reference in New Issue
Block a user