feat: ...

This commit is contained in:
admin
2025-09-24 15:05:42 +07:00
parent 58a2fc3f5c
commit b78a95e244
13 changed files with 330 additions and 96 deletions

View File

@@ -1,7 +1,8 @@
services:
frontend_dev_image:
build:
context: /share/Container/dms/frontend
# context: /share/Container/dms/frontend
context: ./frontend
dockerfile: Dockerfile
target: dev
image: dms-frontend:dev
@@ -9,13 +10,22 @@ services:
frontend_prod_image:
build:
context: /share/Container/dms/frontend
## context: /share/Container/dms/frontend
context: ./frontend
args:
NEXT_PUBLIC_API_BASE: https://lcbp3.np-dms.work
- 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
## environment:
## - NEXT_PUBLIC_API_BASE=https://lcbp3.np-dms.work
image: dms-frontend:prod
command: ["true"]
# docker compose -f docker-frontend-build.yml build --no-cache
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 .