Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:lts-alpine

COPY package.json tsconfig.json yarn.lock src/ /src/

#hadolint ignore=DL3018
RUN apk add --no-cache ffmpeg


WORKDIR /src
#hadolint ignore=DL3016
RUN npm install --global vdx


VOLUME [ "/files" ]
WORKDIR /files
ENTRYPOINT [ "vdx" ]
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,22 @@ $ vdx '*.mov' --volume=2
$ npm install --global vdx
```

## Docker

Build:

```sh
$ docker build -t local/vdx .
```

Use:

```sh
$ docker run --rm -u $(id -u):$(id -g) \
-v /home/me/Videos/:/files/ \
local/vdx '*.mp4' --output=./output
```

## Prior art

- [fluent-ffmpeg](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg)
Expand Down