Files
QMS/fe/web/teller-app/Dockerfile
T
ismailmasseran 26ecc94c51
Build Docker Image / build-backend (push) Successful in 1m4s
Build Docker Image / build-admin (push) Successful in 10s
Build Docker Image / build-teller (push) Successful in 19s
Build Docker Image / build-customer (push) Successful in 10s
DONE: fix error on gold display is not showing on display tv (#3)
Co-authored-by: ISMAIL MASSERAN <topaz@ISMAILs-Macbook.local>
Reviewed-on: #3
2026-07-27 09:21:24 +08:00

20 lines
406 B
Docker

# Build stage
FROM node:20-bookworm AS build
WORKDIR /app
ENV VITE_API_URL=$VITE_API_URL
ENV VITE_GOLD_PRICE_URL=$VITE_GOLD_PRICE_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;"]