From daf70d7d49fc02c74609c59d6e535d9a5482d08d Mon Sep 17 00:00:00 2001 From: Joseph Shenton Date: Fri, 19 Dec 2025 15:19:46 +1100 Subject: [PATCH] Change image again --- Dockerfile | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4a5a80c..2871c03 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,32 +1,27 @@ -# Ubuntu base with Bun and FFmpeg -FROM ubuntu:24.04 +# Node.js base with FFmpeg (Bun has zeromq/libuv compatibility issues) +FROM node:20-bookworm-slim -# Install dependencies +# Install FFmpeg RUN apt-get update && \ - apt-get install -y --no-install-recommends \ - curl \ - ca-certificates \ - unzip \ - ffmpeg \ - && rm -rf /var/lib/apt/lists/* + apt-get install -y --no-install-recommends ffmpeg && \ + rm -rf /var/lib/apt/lists/* -# Install Bun -RUN curl -fsSL https://bun.sh/install | bash -ENV PATH="/root/.bun/bin:${PATH}" +# Install tsx globally for running TypeScript +RUN npm install -g tsx WORKDIR /app # Copy package files -COPY package.json bun.lock ./ +COPY package.json package-lock.json* ./ -# Install dependencies -RUN bun install --frozen-lockfile --production +# Install dependencies with npm +RUN npm install --production=false # Copy source COPY . . # Build TypeScript -RUN bun run build +RUN npm run build # Create data directory RUN mkdir -p /app/data @@ -38,4 +33,4 @@ ENV NODE_ENV=production VOLUME ["/app/data"] # Run the app -CMD ["bun", "start"] +CMD ["npm", "start"]