chore: add multistage build to optimize the image size

This commit is contained in:
Lakhan Samani
2021-07-21 17:53:22 +05:30
parent a528fe2f26
commit 40ad01e6b7
4 changed files with 24 additions and 5 deletions

View File

@@ -1,5 +1,4 @@
version: "3.9"
version: "3.9"
services:
db:
image: postgres
@@ -12,7 +11,7 @@ services:
ports:
- 5432:5432
yauth:
build: .
image: lakhansamani/yauth:0.1.0-beta.0
ports:
- 8080:8080
depends_on: