services: frontend_dev_image: build: # context: /share/Container/dms/frontend context: ./frontend dockerfile: Dockerfile target: dev image: dms-frontend:dev command: ["true"] frontend_prod_image: build: ## context: /share/Container/dms/frontend context: ./frontend args: - NEXT_PUBLIC_API_BASE=https://lcbp3.np-dms.work - NODE_ENV=production #added dockerfile: Dockerfile target: prod ## environment: ## - NEXT_PUBLIC_API_BASE=https://lcbp3.np-dms.work image: dms-frontend:prod command: ["true"] environment: - NEXT_PUBLIC_API_BASE=https://lcbp3.np-dms.work - NODE_ENV=production # docker compose -f docker-frontend-build.yml build --no-cache # **** สำหรับ build บน server เอา ## ออก ***** # สำหรับ build บน local # cd frontend # docker build -t dms-frontend:dev --target dev .