2310
This commit is contained in:
1 parent
ef595cacbf
commit
d4bbf150a5
2 files changed
+9
-19
No files matched your search
@@ -16,6 +16,10 @@ RUN npm ci --only=production && \
|
||||
FROM node:20-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
# 设置构建时环境变量(Turbopack 会内联这些值)
|
||||
ENV BLOG_ROOT=/blog
|
||||
ENV NODE_ENV=production
|
||||
|
||||
# Copy package files
|
||||
COPY package.json package-lock.json ./
|
||||
|
||||
@@ -64,6 +68,7 @@ EXPOSE 8016
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=8016
|
||||
ENV HOSTNAME="0.0.0.0"
|
||||
ENV BLOG_ROOT=/blog
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
|
||||
Reference in new issue
Block a user