Skip to content

Commit

Permalink
Prepare for building multiple containers
Browse files Browse the repository at this point in the history
  • Loading branch information
philmcmahon committed Oct 3, 2024
1 parent 82d39d6 commit 8891ff8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:
push:
paths:
- 'whisper_container/Dockerfile'
- '../../containers/Dockerfile'
- '.github/workflows/build-whisper-docker.yml'

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
Expand Down
16 changes: 16 additions & 0 deletions containers/media-download.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM python:3.12-bookworm
WORKDIR /opt
LABEL com.theguardian.transcription-service.media-download-container="Media download container with yt-dlp, associated dependnencies and media download app"

ARG node_version

RUN pip install yt-dlp

RUN apt-get update
RUN apt-get install -y ffmpeg git phantomjs ffprobe nodejs npm
RUN npm install -g n
RUN n $node_version

COPY packages/media-download/dist/index.js /opt/media-download.js

CMD node /opt/media-download.js
File renamed without changes.

0 comments on commit 8891ff8

Please sign in to comment.