Merge branch 'front' into cicd
Some checks failed
Build and Deploy Go App / build (push) Failing after 3m2s
Build and Deploy Go App / deploy (push) Has been skipped

This commit is contained in:
nihonium 2025-10-09 14:46:48 +03:00
commit 4085efd372
Signed by: nihonium
GPG key ID: 0251623741027CFC
20 changed files with 4171 additions and 3 deletions

View file

@ -0,0 +1,13 @@
FROM node:20-alpine AS builder
ARG VITE_BACKEND_API_BASE_URL
ENV VITE_BACKEND_API_BASE_URL=$VITE_BACKEND_API_BASE_URL
WORKDIR /app
COPY modules/frontend/ ./
RUN echo "VITE_BACKEND_API_BASE_URL=$VITE_BACKEND_API_BASE_URL"
RUN npm install
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]