Files
sova-ci d2ffc96308
adminpanel-ci-cd / test (push) Has been skipped
adminpanel-ci-cd / parse-tag (push) Successful in 1s
adminpanel-ci-cd / build-and-push (push) Successful in 19s
adminpanel-ci-cd / deploy-gitops (push) Successful in 1s
ci: sed bump deploy values, fix adminpanel Dockerfile env.js
2026-06-09 16:25:49 +03:00

18 lines
535 B
Docker

# syntax=docker/dockerfile:1
FROM node:24-alpine AS build
WORKDIR /app
COPY package.json package-lock.json* ./
RUN if [ -f package-lock.json ]; then npm ci; else npm install; fi
COPY . .
RUN npm run build
FROM nginx:1.27-alpine AS runtime
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
RUN echo 'window.__ENV__ = window.__ENV__ || {};' > /usr/share/nginx/html/env.js
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]