Skip to content

Commit 06bfba1

Browse files
committed
🔧 Update Dockerfile and Playwright config to use Bun
1 parent 4cb801a commit 06bfba1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

frontend/Dockerfile.playwright

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ FROM mcr.microsoft.com/playwright:v1.57.0-noble
22

33
WORKDIR /app
44

5-
COPY package*.json /app/
5+
RUN curl -fsSL https://bun.sh/install | bash
6+
ENV PATH="/root/.bun/bin:$PATH"
67

7-
RUN npm install
8+
COPY package*.json bun.lock* /app/
9+
10+
RUN bun install
811

912
COPY ./ /app/
1013

11-
ARG VITE_API_URL=${VITE_API_URL}
14+
ARG VITE_API_URL

frontend/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default defineConfig({
8484

8585
/* Run your local dev server before starting the tests */
8686
webServer: {
87-
command: 'npm run dev',
87+
command: 'bun run dev',
8888
url: 'http://localhost:5173',
8989
reuseExistingServer: !process.env.CI,
9090
},

0 commit comments

Comments
 (0)