From 97e061b74f2359ea96aa77cac50760f9565038b6 Mon Sep 17 00:00:00 2001 From: raphaelauv Date: Tue, 29 Sep 2026 18:10:15 +0200 Subject: [PATCH 1/2] Refactor Dockerfile by removing bun installation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the build fail with ``` => [6/9] COPY frontend/package.json /app/frontend/ 0.0s => [7/9] WORKDIR /app/frontend 0.0s => ERROR [8/9] RUN bun install 0.2s ------ > [8/9] RUN bun install: 0.168 /bin/sh: 1: bun: not found ------ [+] build 0/1 ⠙ Image full-stack-fastapi-template-playwright Building 6.5s Dockerfile.playwright:20 ``` so let's use the official bun image --- frontend/Dockerfile.playwright | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/Dockerfile.playwright b/frontend/Dockerfile.playwright index 63d902831c..8af9b6604b 100644 --- a/frontend/Dockerfile.playwright +++ b/frontend/Dockerfile.playwright @@ -2,11 +2,7 @@ FROM mcr.microsoft.com/playwright:v1.62.1-noble WORKDIR /app -RUN apt-get update && apt-get install -y unzip \ - && rm -rf /var/lib/apt/lists/* - -RUN curl -fsSL https://bun.sh/install | bash -ENV PATH="/root/.bun/bin:$PATH" +COPY --from=oven/bun:latest /usr/local/bin/bun /usr/local/bin/bun COPY package.json bun.lock /app/ From b487eb42c093dce1906090c4b6e011167509a383 Mon Sep 17 00:00:00 2001 From: raphaelauv Date: Tue, 29 Sep 2026 18:40:02 +0200 Subject: [PATCH 2/2] Add symbolic link for bun in Dockerfile.playwright Create a symbolic link for bun as bunx in the Dockerfile. --- frontend/Dockerfile.playwright | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/Dockerfile.playwright b/frontend/Dockerfile.playwright index 8af9b6604b..483398a420 100644 --- a/frontend/Dockerfile.playwright +++ b/frontend/Dockerfile.playwright @@ -3,6 +3,7 @@ FROM mcr.microsoft.com/playwright:v1.62.1-noble WORKDIR /app COPY --from=oven/bun:latest /usr/local/bin/bun /usr/local/bin/bun +RUN ln -s /usr/local/bin/bun /usr/local/bin/bunx COPY package.json bun.lock /app/