Files
zavrsni-rad-otel-app/frontend/Dockerfile
Domagoj Andrić b1de6284f7
All checks were successful
CI / test (push) Successful in 54s
CI / test-analytics (push) Successful in 2m2s
CI / build-api (push) Successful in 3m1s
CI / build-frontend (push) Successful in 1m58s
CI / build-analytics (push) Successful in 41s
Remove retarded build time variables
2026-05-11 17:00:17 +02:00

23 lines
421 B
Docker

FROM rockylinux/rockylinux:10 AS build
RUN dnf install -y nodejs npm && dnf clean all
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --no-audit
COPY . .
RUN npm run build
FROM rockylinux/rockylinux:10 AS final
RUN dnf install -y nginx && dnf clean all
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]