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

+3
View File
@@ -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