Better Dockerfile (#645)

* Add support for docker compose build
* Avoid copying more file than needed
* Reduce Docker image size
This commit is contained in:
Francesco Frassinelli
2023-04-01 01:55:59 +02:00
committed by GitHub
parent 08bbb1537e
commit e905e5de53
2 changed files with 21 additions and 15 deletions

View File

@@ -22,6 +22,7 @@ services:
pgweb:
container_name: pgweb
image: sosedoff/pgweb:latest
build: .
environment:
PGWEB_DATABASE_URL: postgres://pgweb:pgweb@pgweb-postgres:5432/pgweb?sslmode=disable
ports: