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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user