progressively working deploy scenario

This commit is contained in:
2026-06-19 19:17:22 +00:00
parent 2d2b2d040b
commit c4cc268ea8
14 changed files with 125 additions and 72 deletions
+7 -4
View File
@@ -1,5 +1,5 @@
# ── Build stage ───────────────────────────────────────────────────────
FROM node:20-alpine AS build
FROM docker.io/library/node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
@@ -7,8 +7,11 @@ COPY . .
RUN npx ng build --configuration production
# ── Serve stage ────────────────────────────────────────────────────────
FROM docker.io/library/nginx:1.30-perl
FROM docker.io/library/nginx:alpine
COPY --from=build /app/dist/radio-station/browser /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY nginx.conf.template /etc/nginx/conf.d/nginx.conf.template
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
ENV API_UPSTREAM=http://api:8000
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
ENTRYPOINT ["/docker-entrypoint.sh"]