- Marketing landing page with hero, features, testimonials, FAQ, pricing - EmDash CMS with pages collection and marketing blocks - Full seed data with all content sections - Dockerfile with entrypoint for database persistence - Responsive design with CSS variables Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
36 lines
681 B
Docker
36 lines
681 B
Docker
FROM node:22-alpine AS deps
|
|
|
|
RUN apk add --no-cache python3 make g++ sqlite
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json pnpm-lock.yaml* ./
|
|
RUN corepack enable && corepack prepare pnpm@9.0.0 --activate
|
|
RUN pnpm install
|
|
|
|
FROM deps AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=deps /app/node_modules ./node_modules
|
|
COPY . .
|
|
|
|
RUN pnpm build && pnpm exec emdash init && mkdir -p uploads
|
|
|
|
FROM deps AS runner
|
|
|
|
WORKDIR /app
|
|
|
|
ENV NODE_ENV=production
|
|
ENV HOST=0.0.0.0
|
|
|
|
COPY --from=builder /app/node_modules ./node_modules
|
|
COPY --from=builder /app/dist ./dist
|
|
COPY --from=builder /app/uploads ./uploads
|
|
|
|
EXPOSE 4321
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"] |