From 039ab69d3988bb2be61d14ebc9b7937130013bed Mon Sep 17 00:00:00 2001 From: cyno-benzene <55052924+cyno-benzene@users.noreply.github.com> Date: Tue, 10 Feb 2026 08:51:52 +0530 Subject: [PATCH] added docker compose file --- .dockerignore | 10 ++++++++++ Dockerfile | 41 +++++++++++++++++++++++++++++++++++++++++ README.md | 8 ++++++++ docker-compose.yaml | 11 +++++++++++ 4 files changed, 70 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 docker-compose.yaml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..e4a90c774 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,10 @@ +node_modules +.dexter +.env +.env.* +.git +.gitignore +README.md +dist +tests +bun.lock diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..ebf8a6b0e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,41 @@ +FROM oven/bun:latest + +RUN apt-get update && apt-get install -y \ + libgbm-dev \ + libnss3 \ + libatk1.0-0 \ + libatk-bridge2.0-0 \ + libcups2 \ + libdrm2 \ + libxkbcommon0 \ + libxcomposite1 \ + libxdamage1 \ + libxext6 \ + libxfixes3 \ + libxrandr2 \ + libasound2 \ + libpango-1.0-0 \ + libcairo2 \ + libasound2t64 \ + && rm -rf /var/lib/apt/lists/* + +# Set the working directory +WORKDIR /app + +# Copy package files +COPY package.json ./ + +# Install dependencies +RUN bun install + +# Install Playwright browsers (Chromium only as per package.json) +RUN bun playwright install chromium + +# Copy the remaining application code +COPY . . + +# Set the environment variable to ensure Ink works correctly in Docker +ENV TERM=xterm-256color + +# Command to run the application +ENTRYPOINT ["bun", "run", "start"] diff --git a/README.md b/README.md index ed1b9350b..4d1236f9a 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,7 @@ cp env.example .env ## 🚀 How to Run +### With Bun Run Dexter in interactive mode: ```bash bun start @@ -118,6 +119,13 @@ Or with watch mode for development: ```bash bun dev ``` +### With Docker + +```bash +docker compose run dexter +``` + + ## 📊 How to Evaluate diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 000000000..b2909bbe0 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,11 @@ +services: + dexter: + build: . + container_name: dexter + env_file: + - .env + stdin_open: true + tty: true + volumes: + - ./.dexter:/app/.dexter + restart: no