diff --git a/Dockerfile b/Dockerfile index 0607d63..0cd3bfc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,11 @@ FROM oven/bun:1 AS builder WORKDIR /app +# Native modules built via node-gyp need Python and a C/C++ toolchain. +RUN apt-get update \ + && apt-get install -y --no-install-recommends python3 python-is-python3 make g++ \ + && rm -rf /var/lib/apt/lists/* + # Copy package files COPY package.json bun.lockb ./ diff --git a/package.json b/package.json index 0c646f8..3c3375f 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,8 @@ "name": "crunk-bun", "version": "1.0.0", "description": "Joel Discord Bot", - "module": "src/index.ts", "type": "module", + "module": "src/index.ts", "scripts": { "start": "bun run css:build && bun run src/index.ts", "dev": "bun run css:watch & bun --watch run src/index.ts", @@ -17,15 +17,6 @@ "typecheck": "tsc --noEmit", "lint": "bunx @biomejs/biome lint ./src" }, - "devDependencies": { - "@tailwindcss/cli": "^4.2.1", - "@types/bun": "latest", - "drizzle-kit": "^1.0.0-beta.15-859cf75", - "tailwindcss": "^4.2.1" - }, - "peerDependencies": { - "typescript": "^5.0.0" - }, "dependencies": { "@ai-sdk/openai": "^0.0.13", "@discordjs/opus": "^0.10.0", @@ -47,5 +38,14 @@ "oxlint": "^1.50.0", "replicate": "^1.4.0", "zod": "^3.23.8" + }, + "devDependencies": { + "@tailwindcss/cli": "^4.2.1", + "@types/bun": "latest", + "drizzle-kit": "^1.0.0-beta.15-859cf75", + "tailwindcss": "^4.2.1" + }, + "peerDependencies": { + "typescript": "^5.0.0" } }