add python3+ffmpeg (Ubuntu 24.04 base, matches SHARED venv) for BOT/render_replay.py replay-canvas rendering, previously entirely missing
This commit is contained in:
+13
-3
@@ -1,11 +1,21 @@
|
||||
FROM node:22-bookworm-slim AS builder
|
||||
FROM ubuntu:24.04 AS builder
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl gnupg \
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
||||
&& apt-get install -y --no-install-recommends nodejs \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
RUN npm ci --include=dev
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM node:22-bookworm-slim
|
||||
FROM ubuntu:24.04
|
||||
# python3+ffmpeg match the SHARED venv's Ubuntu 24.04 build, needed for
|
||||
# BOT/render_replay.py (replay-canvas rendering, mounted at deploy time).
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl gnupg python3 ffmpeg \
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
||||
&& apt-get install -y --no-install-recommends nodejs \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --omit=dev
|
||||
|
||||
Reference in New Issue
Block a user