mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +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
@@ -5,6 +5,7 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: app/Dockerfile
|
||||
target: prod
|
||||
networks:
|
||||
internal:
|
||||
ports:
|
||||
@@ -15,6 +16,7 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: server/Dockerfile
|
||||
target: prod
|
||||
networks:
|
||||
- internal
|
||||
- players
|
||||
@@ -31,6 +33,7 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: packages/analytics/Dockerfile
|
||||
target: prod
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
|
||||
Reference in new issue
Block a user