Changed Dockerfile
This commit is contained in:
parent
fd42eeccdb
commit
90e9bba1e0
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ WORKDIR /app
|
||||||
|
|
||||||
# Install dependencies first for better Docker layer caching
|
# Install dependencies first for better Docker layer caching
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci
|
RUN npm install
|
||||||
|
|
||||||
# Copy source code and build the production bundle
|
# Copy source code and build the production bundle
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
@ -21,7 +21,7 @@ ENV PORT=3000
|
||||||
|
|
||||||
# Install production dependencies only
|
# Install production dependencies only
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci --only=production
|
RUN npm install --omit=dev
|
||||||
|
|
||||||
# Copy built dist files and default cms data from builder
|
# Copy built dist files and default cms data from builder
|
||||||
COPY --from=builder /app/dist ./dist
|
COPY --from=builder /app/dist ./dist
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue