feat: refactor dockerfiles

* combine dev and prod into multi-stages dockerfile
* replace node with node:20-alpine to reduce image size
This commit is contained in:
Lin, Hung-Shin authored and wancat committed 2023-10-29 17:41:38 +08:00
1 parent 625c1a80da
commit 579d53a273
10 files changed
+59 -67

No files matched your search

+2
View File
@@ -17,6 +17,7 @@ services:
build:
context: .
dockerfile: app/Dockerfile
target: prod
networks:
internal:
ports:
@@ -29,6 +30,7 @@ services:
build:
context: .
dockerfile: server/Dockerfile
target: prod
depends_on:
- db-test
networks: