Merge pull request #864 from Hestia-Homes/main

Deploy fastapi with terraform: ensure pip install takes place every run
This commit is contained in:
Daniel Roth 2026-03-12 14:11:07 +00:00 committed by GitHub
commit 968949d875
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,10 +12,6 @@ module "role" {
resource "null_resource" "pip_install" {
count = var.requirements_file != null ? 1 : 0
triggers = {
requirements_hash = filemd5("${var.requirements_file}")
}
provisioner "local-exec" {
command = "pip install -r ${var.requirements_file} -t ${var.source_dir} --platform manylinux2014_x86_64 --implementation cp --python-version 3.11 --only-binary=:all: --upgrade"
}