Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
32 changes: 18 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
# Build stage
FROM oven/bun:latest AS base
WORKDIR /app
# Ubuntu base with Bun and FFmpeg
FROM ubuntu:24.04

# Install dependencies
FROM base AS install
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile --production
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
ca-certificates \
unzip \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*

# Release stage
FROM base AS release
# Install Bun
RUN curl -fsSL https://bun.sh/install | bash
ENV PATH="/root/.bun/bin:${PATH}"

# Install FFmpeg
RUN apt-get update && \
apt-get install -y --no-install-recommends ffmpeg && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app

# Copy package files
COPY package.json bun.lock ./

# Copy dependencies
COPY --from=install /app/node_modules ./node_modules
# Install dependencies
RUN bun install --frozen-lockfile --production

# Copy source
COPY . .
Expand Down
Loading