Passing build context at app start up fails

Currently trying to spin up a custom app where I supply the Dockerfile. I have believe I have it reading this file from the dataset, but we receive the error below. When using the image provided by the repo, it starts fine. I’m wanting to supply my own image based on other troubleshooting being done. Is supplying through build context not allowed?

services:
  llama-intel:
    build:
      context: /mnt/apps/docker/Dockerfiles
      dockerfile: intel.Dockerfile
    command:
      - '--model'
      - /models/Llama-3.2-3B-Instruct-Q5_K_M.gguf
    ......
    image: llama-intel:intelDockerfile

Snippet from intel.Dockerfile: (full intel.Dockerfile here)

ARG ONEAPI_VERSION=2025.2.2-0-devel-ubuntu24.04

## Build Image

FROM intel/deep-learning-essentials:$ONEAPI_VERSION AS build

ARG GGML_SYCL_F16=OFF
RUN apt-get update && \
    apt-get install -y git libcurl4-openssl-dev

WORKDIR /app

COPY . .

RUN \
    echo "Building with dynamic libs" && \
    cmake -B build -DGGML_NATIVE=OFF -DGGML_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON -DLLAMA_BUILD_TESTS=OFF -DGGML_SYCL_F16=OFF && \
    cmake --build build --config Release -j$(nproc)

truenas_images

Error seen in logs when trying to start app:

[2025/12/09 09:01:14] (ERROR) app_lifecycle.compose_action():56 - Failed ‘up’ action for ‘ggml-org-openui’ app:  llama-intel Pulling \n llama-intel Warning pull access denied for llama-intel, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied\nfailed to solve: process “/bin/sh -c echo "Building with dynamic libs" &&     cmake -B build -DGGML_NATIVE=OFF -DGGML_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON -DLLAMA_BUILD_TESTS=OFF -DGGML_SYCL_F16=OFF &&     cmake --build build --config Release -j$(nproc)” did not complete successfully: exit code: 1\n

System related:

OS Version:25.04.0 Community
Product:B550M Pro4
Model:AMD Ryzen 5 5600XT 6-Core Processor
Memory:63 GiB

Workaround: I ended up pulling the repository and pushing an image built locally. However, I’m still not sure why I couldn’t use a Dockerfile to build directly from the custom yaml screen.