fix: Website-creator Dockerfile uses npm install instead of ci

- Changed npm ci to npm install (more flexible for production)
- Port remains 80 (correct)
- Applies to both source and global install
This commit is contained in:
Kunthawat Greethong
2026-03-12 08:56:21 +07:00
parent b6a849a087
commit 7fe879ed61

View File

@@ -359,14 +359,14 @@ dist
dockerfile = """FROM node:20-alpine AS builder dockerfile = """FROM node:20-alpine AS builder
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm ci RUN npm install
COPY . . COPY . .
RUN npm run build RUN npm run build
FROM node:20-alpine FROM node:20-alpine
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm ci --production RUN npm install --production
COPY --from=builder /app/dist ./dist COPY --from=builder /app/dist ./dist
COPY --from=builder /app/db ./db COPY --from=builder /app/db ./db