Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
.dexter
.env
.env.*
.git
.gitignore
README.md
dist
tests
bun.lock
41 changes: 41 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ cp env.example .env

## 🚀 How to Run

### With Bun
Run Dexter in interactive mode:
```bash
bun start
Expand All @@ -118,6 +119,13 @@ Or with watch mode for development:
```bash
bun dev
```
### With Docker

```bash
docker compose run dexter
```



## 📊 How to Evaluate

Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
services:
dexter:
build: .
container_name: dexter
env_file:
- .env
stdin_open: true
tty: true
volumes:
- ./.dexter:/app/.dexter
restart: no
Loading