Update frontend new build dev, proc 2
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
services:
|
||||
frontend_dev_image:
|
||||
build:
|
||||
# context: /share/Container/dms/frontend
|
||||
context: ./frontend
|
||||
context: /share/Container/dms/frontend
|
||||
# context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
target: dev
|
||||
image: dms-frontend:dev
|
||||
@@ -10,20 +10,20 @@ services:
|
||||
|
||||
frontend_prod_image:
|
||||
build:
|
||||
## context: /share/Container/dms/frontend
|
||||
context: ./frontend
|
||||
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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user