mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
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:
1 parent
625c1a80da
commit
579d53a273
10 files changed
+59
-67
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user