# Production stage - serve pre-built Vue 3 application
FROM nginx:alpine

# Copy pre-built assets to nginx html directory
COPY dist /usr/share/nginx/html

# Copy nginx configuration with API proxy for CORS
COPY nginx.conf /etc/nginx/conf.d/default.conf

# Expose both HTTP and HTTPS ports
EXPOSE 80 443

CMD ["nginx", "-g", "daemon off;"]
