feat: initial release of pengzhan.dev personal editorial blog platform
- Editorial web platform built with Node.js, Express, EJS, and Vanilla CSS - Markdown content engine with YAML frontmatter, bilingual variants, and hot-reload watcher - Unified SQLite with FTS5 search indexing, query logging, and schema filters - Centered editorial post layout with margin-docked left TOC and mobile bottom sheet - WordPress-grade comment system with moderation dashboard and bulk operations under /guanli - Complete SEO suite (JSON-LD structured data, RSS/Atom feeds, XML sitemap, robots.txt) - CI/CD workflows for linting, security audits (Gitleaks), automated tests, and Docker releases
This commit is contained in:
+24
-6
@@ -1,11 +1,29 @@
|
||||
FROM ruby:2.7
|
||||
# Multi-stage lightweight build for pengzhan.dev skeleton
|
||||
FROM node:22-alpine AS dependencies
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci --omit=dev
|
||||
|
||||
WORKDIR /home/app
|
||||
FROM node:22-alpine AS runner
|
||||
WORKDIR /app
|
||||
|
||||
COPY Gemfile* ./
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3000
|
||||
|
||||
RUN bundle install
|
||||
# Copy node_modules from dependencies stage
|
||||
COPY --from=dependencies /app/node_modules ./node_modules
|
||||
COPY package*.json ./
|
||||
|
||||
COPY . .
|
||||
# Copy skeleton web framework code
|
||||
COPY server/ ./server/
|
||||
COPY views/ ./views/
|
||||
COPY public/ ./public/
|
||||
|
||||
CMD [ "bundle", "exec", "jekyll", "serve" ]
|
||||
# Persistent Volume mount point
|
||||
VOLUME /app/content
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
USER node
|
||||
|
||||
CMD ["node", "server/index.js"]
|
||||
|
||||
Reference in New Issue
Block a user