FROM denoland/deno:bin-2.9.0 AS deno FROM mcr.microsoft.com/devcontainers/typescript-node:20 COPY --from=deno /deno /usr/local/bin/deno # The API draws thumbnails and waveforms with ffmpeg, in the workspace and in # the instances' services alike (compose.yaml), which don't get the features. RUN apt-get update \ && apt-get install -y --no-install-recommends ffmpeg \ && rm -rf /var/lib/apt/lists/* # The services share Deno's cache through a volume (compose.yaml), which Docker # creates owned as this directory is, so it must exist and be node's. RUN mkdir -p /home/node/.cache/deno && chown -R node:node /home/node/.cache