Compare commits
No commits in common. "f6574bc970e6970dc0a5bad1622bb11e3af95483" and "f10c71c9ec2ed712a3fc0577016a3ede840c0926" have entirely different histories.
f6574bc970
...
f10c71c9ec
@ -1,10 +0,0 @@
|
||||
node_modules
|
||||
dist
|
||||
build
|
||||
.cache
|
||||
.git
|
||||
.gitignore
|
||||
.env
|
||||
.env.*
|
||||
coverage
|
||||
npm-debug.log*
|
||||
@ -1,23 +1,31 @@
|
||||
# ---- Build stage ----
|
||||
FROM node:20-bookworm-slim AS builder
|
||||
# Build stage
|
||||
FROM node:18-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# nur Manifeste kopieren
|
||||
COPY package.json package-lock.json ./
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
|
||||
# npm robuster machen (optional, aber hilft)
|
||||
RUN npm i -g npm@9
|
||||
RUN npm ci --no-audit --no-fund
|
||||
# Install dependencies
|
||||
RUN npm ci
|
||||
|
||||
# restlichen Code kopieren (ohne node_modules dank .dockerignore)
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Build
|
||||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
# ---- Runtime ----
|
||||
# Production stage
|
||||
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
|
||||
CMD ["nginx","-g","daemon off;"]
|
||||
|
||||
# Start nginx
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
9426
frontend/package-lock.json
generated
Normal file
9426
frontend/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user