This commit is contained in:
@@ -7,7 +7,7 @@ RUN apk add --no-cache imagemagick libwebp libwebp-tools ghostscript
|
||||
# Enable pnpm
|
||||
RUN corepack enable
|
||||
|
||||
WORKDIR /app
|
||||
# WORKDIR /app
|
||||
|
||||
# Copy dependency files and install dependencies
|
||||
# This is cached separately from the source code
|
||||
@@ -18,8 +18,8 @@ RUN pnpm install --frozen-lockfile
|
||||
COPY . .
|
||||
|
||||
# --- Asset Generation Step ---
|
||||
# Run scripts to generate static images BEFORE the Next.js build
|
||||
# The build needs these assets to be present.
|
||||
RUN ls -la .
|
||||
RUN ls -la /app
|
||||
RUN chmod +x ./scripts/*.sh && \
|
||||
./scripts/first_page_image.sh && \
|
||||
./scripts/generate_webp.sh
|
||||
|
||||
Reference in New Issue
Block a user