Compare commits

...

2 Commits

Author SHA1 Message Date
f6574bc970 Remove package-lock.json 2025-09-01 05:13:51 +02:00
1495c934ef Add dockerignore 2025-09-01 05:12:30 +02:00
3 changed files with 21 additions and 9445 deletions

10
frontend/.dockerignore Normal file
View File

@ -0,0 +1,10 @@
node_modules
dist
build
.cache
.git
.gitignore
.env
.env.*
coverage
npm-debug.log*

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;"]
CMD ["nginx","-g","daemon off;"]

File diff suppressed because it is too large Load Diff