CI Pipeline / backend-test (push) Successful in 5m46s
CI Pipeline / frontend-test (push) Successful in 24s
CI Pipeline / frontend-build (push) Successful in 30s
CI Pipeline / backend-lint (push) Successful in 12s
CI Pipeline / backend-test (pull_request) Successful in 5m48s
CI Pipeline / frontend-test (pull_request) Successful in 22s
CI Pipeline / frontend-build (pull_request) Successful in 29s
CI Pipeline / backend-lint (pull_request) Successful in 8s
CI Pipeline / quality-gate (push) Successful in 2s
CI Pipeline / quality-gate (pull_request) Successful in 2s
23 lines
1.0 KiB
Docker
23 lines
1.0 KiB
Docker
# ── Build stage ───────────────────────────────────────────────────────
|
|
FROM docker.io/library/node:22-alpine AS build
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
COPY . .
|
|
RUN npx ng build --configuration production
|
|
|
|
# ── Serve stage ────────────────────────────────────────────────────────
|
|
FROM docker.io/library/node:22-alpine
|
|
RUN apk add --no-cache nginx gettext
|
|
COPY --from=build /app/dist/radio-station/browser /usr/share/nginx/html
|
|
COPY --from=build /app/dist/radio-station/server /app/server
|
|
COPY nginx.conf.template /etc/nginx/conf.d/nginx.conf.template
|
|
COPY config.json.template /usr/share/nginx/html/config.json.template
|
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
|
RUN chmod +x /docker-entrypoint.sh
|
|
ENV API_UPSTREAM=http://api:8000
|
|
ENV API_PUBLIC_URL=""
|
|
RUN mkdir -p /logs
|
|
EXPOSE 80
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|