feat: Updates dockerfile for pagefind build.
All checks were successful
CI / release (push) Successful in 6m9s
All checks were successful
CI / release (push) Successful in 6m9s
This commit is contained in:
@@ -30,6 +30,7 @@ WORKDIR /build
|
|||||||
RUN npm install -g pnpm@latest-10
|
RUN npm install -g pnpm@latest-10
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
COPY --from=build /build/deploy ./deploy
|
||||||
|
|
||||||
RUN pnpm install && pnpm run css-build
|
RUN pnpm install && pnpm run css-build
|
||||||
RUN npx -y pagefind --site deploy
|
RUN npx -y pagefind --site deploy
|
||||||
@@ -41,7 +42,7 @@ FROM caddy:2.9.1-alpine
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=build /build/deploy .
|
COPY --from=css /build/deploy .
|
||||||
COPY --from=css /build/content/static/output.css ./static/output.css
|
COPY --from=css /build/content/static/output.css ./static/output.css
|
||||||
COPY --from=css /build/deploy/pagefind ./pagefind
|
COPY --from=css /build/deploy/pagefind ./pagefind
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user