Files
QMS/fe/web/admin-app/Dockerfile
T
ISMAIL MASSERAN 8fd3dbe393
Build Docker Image / build-backend (push) Successful in 6s
Build Docker Image / build-admin (push) Successful in 45s
Build Docker Image / build-teller (push) Successful in 20s
Build Docker Image / build-customer (push) Successful in 2m2s
DONE: use ip for frontend but point to domain for api
2026-07-23 14:59:01 +08:00

20 lines
400 B
Docker

# Build stage
FROM node:20-bookworm AS build
WORKDIR /app
ARG VITE_API_URL=http://localhost:8080
ENV VITE_API_URL=$VITE_API_URL
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
# Runtime stage — static SPA
FROM nginx:alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]