-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 952 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Stage 1: Install production dependencies
FROM oven/bun:1-debian AS deps
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --production --frozen-lockfile
# Stage 2: Production image
FROM oven/bun:1-debian
# git is required for workspace manager (git clone)
# python3 + kodi-addon-checker required for addon lint checks
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates python3 python3-pip && pip3 install --no-cache-dir --break-system-packages kodi-addon-checker && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy production dependencies from deps stage
COPY --from=deps /app/node_modules ./node_modules
# Copy application source
COPY package.json bun.lock tsconfig.json ./
COPY src/ ./src/
# DATABASE_URL is provided via Azure Container Apps secrets at runtime
ENV DATABASE_URL=""
# Run as non-root user (oven/bun images include 'bun' user)
USER bun
EXPOSE 3000
CMD ["bun", "run", "src/index.ts"]