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
@@ -69,6 +69,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
file: ./server/Dockerfile
|
||||
target: prod
|
||||
push: true
|
||||
tags: docker.io/${{ secrets.DOCKERHUB_USERNAME }}/linux-odyssey:backend
|
||||
|
||||
@@ -77,6 +78,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
file: ./app/Dockerfile
|
||||
target: prod
|
||||
push: true
|
||||
tags: docker.io/${{ secrets.DOCKERHUB_USERNAME }}/linux-odyssey:app
|
||||
|
||||
@@ -85,6 +87,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
file: ./packages/analytics/Dockerfile
|
||||
target: prod
|
||||
push: true
|
||||
tags: docker.io/${{ secrets.DOCKERHUB_USERNAME }}/linux-odyssey:analytics
|
||||
|
||||
|
||||
Reference in new issue
Block a user