Remove package-lock.json

This commit is contained in:
Frederik Beimgraben 2025-09-01 05:13:51 +02:00
parent 1495c934ef
commit f6574bc970
2 changed files with 11 additions and 9445 deletions

View File

@ -1,31 +1,23 @@
# Build stage
FROM node:18-alpine AS builder
# ---- Build stage ----
FROM node:20-bookworm-slim AS builder
WORKDIR /app
# Copy package files
COPY package*.json ./
# nur Manifeste kopieren
COPY package.json package-lock.json ./
# Install dependencies
RUN npm ci
# npm robuster machen (optional, aber hilft)
RUN npm i -g npm@9
RUN npm ci --no-audit --no-fund
# Copy source code
# restlichen Code kopieren (ohne node_modules dank .dockerignore)
COPY . .
# Build the application
# Build
RUN npm run build
# Production stage
# ---- Runtime ----
FROM nginx:alpine
# Copy built assets from builder stage
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy nginx configuration
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port 80
EXPOSE 80
# Start nginx
CMD ["nginx","-g","daemon off;"]

File diff suppressed because it is too large Load Diff