Container build: simplify & speed up, removing the final step running the app as a dedicated user

This commit is contained in:
phil 2024-11-01 23:24:44 +01:00
parent ae0d3532aa
commit 0f612ae3cc
3 changed files with 13 additions and 47 deletions

View file

@ -31,22 +31,7 @@
push_args:
dest: "{{ repository }}/treetrail-backend-deps"
- name: Build a backend base container image, with sources in /src
containers.podman.podman_image:
name: treetrail-backend-base
state: build
force: true
path: "{{ playbook_dir }}"
build:
format: oci
force_rm: "{{ force_rm }}"
cache: "{{ cache }}"
file: Containerfile.base
push: true
push_args:
dest: "{{ repository }}/treetrail-backend-base"
- name: Build the prod container image
- name: Build the backend base container image
containers.podman.podman_image:
name: treetrail-backend
state: build