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 ----
|
# Build stage
|
||||||
FROM node:20-bookworm-slim AS builder
|
FROM node:18-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# nur Manifeste kopieren
|
# Copy package files
|
||||||
COPY package.json package-lock.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# npm robuster machen (optional, aber hilft)
|
# Install dependencies
|
||||||
RUN npm i -g npm@9
|
RUN npm ci
|
||||||
RUN npm ci --no-audit --no-fund
|
|
||||||
|
|
||||||
# restlichen Code kopieren (ohne node_modules dank .dockerignore)
|
# Copy source code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build
|
# Build the application
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# ---- Runtime ----
|
# Production stage
|
||||||
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
|
||||||
|
|
||||||
|
# Start nginx
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
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