progressively working deploy scenario
This commit is contained in:
+7
-4
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user