warungpos-ui / Dockerfile
Mhamdans17
chore: force HF rebuild with cache bust
1980b4f
Raw
History Blame Contribute Delete
643 Bytes
# Build stage
FROM node:20-alpine AS build
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Cache bust - force rebuild
ARG CACHEBUST=20260620195800
# Copy source
COPY . .
# Build with Vite
RUN echo "VITE_API_URL=https://api.xogmgo.com" > .env
RUN echo "VITE_MIDTRANS_CLIENT_KEY=Mid-client-KQFq_pLZU5beI0gk" >> .env
RUN npm run build
# Production stage
FROM nginx:stable-alpine
# Copy custom nginx config
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Copy build output from build stage
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 7860
CMD ["nginx", "-g", "daemon off;"]