ci: add Dockerfile

This commit is contained in:
cătălin 2023-12-09 11:15:39 +01:00
commit 65a56f2658
Signed by: catalin
GPG key ID: 0178DF42F43E5FD2
15 changed files with 382 additions and 70 deletions

View file

@ -1,7 +1,14 @@
build:
docker build --target run -t git.roboces.dev/catalin/secretsanta:latest .
run--sls:
@echo "Activating virtual environment and starting serverless offline"
@. .venv/bin/activate && cd apps/http/sls && npx sls offline
run--litestar:
@echo "Starting litestar"
@. cd apps/http/litestar/ && pdm run litestar run
deploy--sls:
@echo "Deploying via serverless framework"
@. cd apps/http/sls && pdm export -G sls -f requirements --prod > requirements.txt && npx sls deploy
@ -11,4 +18,4 @@ lint:
tests--unit:
pdm run pytest --cov secretsanta tests
coverage html
coverage html