Skip to content

Commit

Permalink
chore: adjust Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
openscript committed Sep 24, 2024
1 parent 4b49c8a commit 4e88188
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 56 deletions.
28 changes: 0 additions & 28 deletions apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,33 +66,5 @@
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"nx": {
"targets": {
"container": {
"executor": "@nx-tools/nx-container:build",
"dependsOn": [
"build"
],
"options": {
"context": "{projectRoot}",
"dockerfile": "{projectRoot}/Dockerfile",
"engine": "docker",
"metadata": {
"images": [
"backend"
],
"load": true,
"tags": [
"type=schedule",
"type=ref,event=branch",
"type=ref,event=tag",
"type=ref,event=pr",
"type=sha,prefix=sha-"
]
}
}
}
}
}
}
28 changes: 0 additions & 28 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,33 +25,5 @@
"typescript": "^5.5.3",
"typescript-eslint": "^8.0.1",
"vite": "^5.4.1"
},
"nx": {
"targets": {
"container": {
"executor": "@nx-tools/nx-container:build",
"dependsOn": [
"build"
],
"options": {
"context": "{projectRoot}",
"dockerfile": "{projectRoot}/Dockerfile",
"engine": "docker",
"metadata": {
"images": [
"frontend"
],
"load": true,
"tags": [
"type=schedule",
"type=ref,event=branch",
"type=ref,event=tag",
"type=ref,event=pr",
"type=sha,prefix=sha-"
]
}
}
}
}
}
}
24 changes: 24 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,30 @@
"cache": true,
"outputs": ["{projectRoot}/dist"]
},
"container": {
"executor": "@nx-tools/nx-container:build",
"dependsOn": [
"build"
],
"options": {
"context": "{projectRoot}",
"dockerfile": "{projectRoot}/Dockerfile",
"engine": "docker",
"metadata": {
"images": [
"{projectName}"
],
"push": true,
"tags": [
"type=schedule",
"type=ref,event=branch",
"type=ref,event=tag",
"type=ref,event=pr",
"type=sha,prefix=sha-"
]
}
}
},
"dev": {
"dependsOn": ["^build"]
}
Expand Down

0 comments on commit 4e88188

Please sign in to comment.