Remove package-lock.json
This commit is contained in:
parent
1495c934ef
commit
f6574bc970
@ -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;"]
|
|
||||||
|
|||||||
9426
frontend/package-lock.json
generated
9426
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user