- Created a new layout for projects with sections for hero, projects, roadmap, selection criteria, and a call to action. - Added a single page layout for individual project details, including a hero section and content area. - Introduced a brand highlight partial to emphasize "TheAfriForge" in text. - Implemented an icon partial for reusable SVG icons across the site. - Developed a site header and footer with navigation and legal links, adapting for language variations. - Enhanced the index layout with sections for hero, stats, pillars, projects, and members. - Added a development script to load environment variables and run Hugo with optional arguments.
28 lines
849 B
Docker
28 lines
849 B
Docker
FROM klakegg/hugo:0.128.0-ext-alpine AS builder
|
|
|
|
WORKDIR /src
|
|
COPY . .
|
|
|
|
# Build-time env vars used by Hugo templates.
|
|
ARG HUGO_MEMBERSHIP_FORM_ACTION=""
|
|
ARG HUGO_MEMBERSHIP_FORM_SUCCESS_PATH=""
|
|
ARG HUGO_FORMBRICKS_API_HOST=""
|
|
ARG HUGO_FORMBRICKS_ENV_ID=""
|
|
ARG HUGO_FORMBRICKS_EVENT=""
|
|
ARG HUGO_FORMBRICKS_SDK_URL=""
|
|
|
|
ENV HUGO_MEMBERSHIP_FORM_ACTION=$HUGO_MEMBERSHIP_FORM_ACTION
|
|
ENV HUGO_MEMBERSHIP_FORM_SUCCESS_PATH=$HUGO_MEMBERSHIP_FORM_SUCCESS_PATH
|
|
ENV HUGO_FORMBRICKS_API_HOST=$HUGO_FORMBRICKS_API_HOST
|
|
ENV HUGO_FORMBRICKS_ENV_ID=$HUGO_FORMBRICKS_ENV_ID
|
|
ENV HUGO_FORMBRICKS_EVENT=$HUGO_FORMBRICKS_EVENT
|
|
ENV HUGO_FORMBRICKS_SDK_URL=$HUGO_FORMBRICKS_SDK_URL
|
|
|
|
RUN hugo --config ./hugo.toml --environment production --minify
|
|
|
|
FROM nginx:1.27-alpine
|
|
|
|
COPY --from=builder /src/public /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|