mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2026-06-10 06:40:38 +03:00
Refactor Dockerfile and compose.yml for slim-build improvements and remove unused database services.
This commit is contained in:
@@ -66,12 +66,17 @@ py-upgrade: ## Upgrade Python syntax to a newer version
|
||||
lint: ## Lint and format project code
|
||||
uv run ruff check --fix .
|
||||
|
||||
|
||||
# ====================================================================================
|
||||
# DOCKER IMAGE BUILDING
|
||||
# ====================================================================================
|
||||
.PHONY: slim-build
|
||||
slim-build: ## Build smaller and more secure Docker images with docker-slim
|
||||
docker-slim build --compose-file docker-compose.yml --target-compose-svc api1 --dep-include-target-compose-svc-deps true --http-probe-exec api1 fastapi-sqlalchemy-asyncpg_api1:latest
|
||||
docker-slim build --compose-file compose.yml \
|
||||
--target-compose-svc api1 \
|
||||
--dep-include-target-compose-svc-deps true \
|
||||
--http-probe-exec api1 fastapi-sqlalchemy-asyncpg-api1:latest \
|
||||
--include-path /panettone/lib/python3.14
|
||||
|
||||
# ====================================================================================
|
||||
# DATABASE SEEDING
|
||||
|
||||
Reference in New Issue
Block a user