From d212e6e0f4910deaeaf38f94a045ec5a5777a96f Mon Sep 17 00:00:00 2001 From: Jonathan Irvin Date: Mon, 27 Feb 2023 10:33:22 -0600 Subject: [PATCH 1/2] add Dockerfile --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0c8baa8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node:18-alpine +RUN apk add --no-cache ffmpeg +WORKDIR /app +COPY ["package.json", "yarn.lock", "./"] +RUN yarn install --frozen-lockfile +COPY . . +CMD ["yarn", "ts-node", "/app/src/index.ts"] From 28b81cddc8811732036823a8e1a74043648e4479 Mon Sep 17 00:00:00 2001 From: Jonathan Irvin Date: Mon, 27 Feb 2023 10:35:28 -0600 Subject: [PATCH 2/2] update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 232f283..7ee3252 100644 --- a/README.md +++ b/README.md @@ -42,3 +42,14 @@ This tool runs `ffmpeg` several times to: # See also https://github.com/padvincenzo/silence-speedup + +# Using Docker + +## To build + +1. Install Docker Desktop +2. Run `docker build . -t remove-silence` + +## To Run + +1. Run `docker run --rm remove-silence `