demo-decoupled docker-compose

This commit is contained in:
2026-09-13 18:05:12 +02:00
parent 8f9b558309
commit 30c373982c
5 changed files with 70 additions and 6 deletions
+13
View File
@@ -0,0 +1,13 @@
# Этап сборки Angular
FROM node:20-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install --legacy-peer-deps
COPY . .
RUN npm run build
# Этап раздачи через Nginx
FROM nginx:alpine
COPY --from=build /app/static/browser /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]