Changed Dockerfile

This commit is contained in:
Daniel Heße 2026-08-04 00:34:38 +02:00
parent fd42eeccdb
commit 90e9bba1e0

View file

@ -5,7 +5,7 @@ WORKDIR /app
# Install dependencies first for better Docker layer caching
COPY package*.json ./
RUN npm ci
RUN npm install
# Copy source code and build the production bundle
COPY . .
@ -21,7 +21,7 @@ ENV PORT=3000
# Install production dependencies only
COPY package*.json ./
RUN npm ci --only=production
RUN npm install --omit=dev
# Copy built dist files and default cms data from builder
COPY --from=builder /app/dist ./dist