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 # ---- Build stage ----
FROM node:18-alpine AS builder FROM node:20-bookworm-slim AS builder
WORKDIR /app WORKDIR /app
# Copy package files # nur Manifeste kopieren
COPY package*.json ./ COPY package.json package-lock.json ./
# Install dependencies # npm robuster machen (optional, aber hilft)
RUN npm ci 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 . . COPY . .
# Build the application # Build
RUN npm run build RUN npm run build
# Production stage # ---- Runtime ----
FROM nginx:alpine FROM nginx:alpine
# Copy built assets from builder stage
COPY --from=builder /app/dist /usr/share/nginx/html COPY --from=builder /app/dist /usr/share/nginx/html
# Copy nginx configuration
COPY nginx.conf /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port 80
EXPOSE 80 EXPOSE 80
CMD ["nginx","-g","daemon off;"]
# Start nginx
CMD ["nginx", "-g", "daemon off;"]

File diff suppressed because it is too large Load Diff