Update to use ESV Bible from GitHub repository with by_chapter structure

This commit is contained in:
Ryderjj89
2025-09-13 12:03:29 -04:00
parent 921a233c51
commit fab87ca06b
4 changed files with 91 additions and 41 deletions

View File

@@ -2,6 +2,9 @@ FROM node:18-alpine
WORKDIR /app
# Install git for cloning the bible repository
RUN apk add --no-cache git
# Copy package files
COPY package*.json ./
@@ -11,6 +14,12 @@ RUN npm ci --only=production
# Copy application code
COPY . .
# Clone ESV Bible markdown 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
# Expose port
EXPOSE 3000