Update roles/build_fastapi/tasks/main.yml

This commit is contained in:
2024-01-29 12:57:44 +08:00
parent bf8f9c7e04
commit 3eac691e21

View File

@@ -20,3 +20,11 @@
command: command:
cmd: source "{{ build_root_abspath }}/venv/bin/activate" cmd: source "{{ build_root_abspath }}/venv/bin/activate"
cmd: pip install "fastapi[all]" cmd: pip install "fastapi[all]"
- name: Build image and with build args
community.docker.docker_image:
name: helloworld-fastapi
source: build
build:
path: "{{ build_root_abspath }}"
pull: false
tag: "{{ demobackend_version }}"