Dockerfile improvements.

This commit is contained in:
2026-02-11 08:41:12 +00:00
parent e3d40d50f0
commit 913820cc29
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM node:latest AS base
FROM node:lts-bookworm-slim AS base
# Install dependencies only when needed
FROM base AS deps
@ -36,7 +36,7 @@ RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python
WORKDIR /app
COPY barker/pyproject.toml barker/poetry.lock /app
COPY barker/pyproject.toml barker/poetry.lock* /app
# Allow installing dev dependencies to run tests
ARG INSTALL_DEV=false

View File

@ -6,7 +6,12 @@
become: true
vars_files:
- vars/default.yml
- "{{ var_file }}"
pre_tasks:
- name: Load per-host vars file from inventory (var_file)
ansible.builtin.include_vars:
file: "{{ var_file }}"
when: var_file is defined
roles:
- network