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