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"] 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 `