mirror of
https://github.com/Tusko/vimeo-private-downloader.git
synced 2025-07-05 20:41:48 -07:00
Added docker support
This commit is contained in:
parent
8f31840570
commit
63d771e70e
3 changed files with 32 additions and 0 deletions
3
.dockerignore
Normal file
3
.dockerignore
Normal file
|
@ -0,0 +1,3 @@
|
|||
**/*.mp4
|
||||
**/*.m4a
|
||||
**/*.m4v
|
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM node:18-alpine
|
||||
|
||||
RUN apk add ffmpeg && mkdir /src
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
COPY ./package.json .
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD ["bin", "sh"]
|
16
Makefile
Normal file
16
Makefile
Normal file
|
@ -0,0 +1,16 @@
|
|||
DOCKER := docker
|
||||
IMAGE_NAME := vimeo-private-downloader
|
||||
IMAGE_VERSION := latest
|
||||
CURRENT_DIR := $(shell pwd)
|
||||
|
||||
build:
|
||||
@$(DOCKER) build . -t $(IMAGE_NAME):$(IMAGE_VERSION)
|
||||
|
||||
start:
|
||||
@$(DOCKER) run --rm -it -v $(CURRENT_DIR):/src $(IMAGE_NAME):$(IMAGE_VERSION) npm run start
|
||||
|
||||
combine:
|
||||
@$(DOCKER) run --rm -it -v $(CURRENT_DIR):/src $(IMAGE_NAME):$(IMAGE_VERSION) npm run combine
|
||||
|
||||
bash:
|
||||
@$(DOCKER) run --rm -it -v $(CURRENT_DIR):/src $(IMAGE_NAME):$(IMAGE_VERSION) /bin/sh
|
Loading…
Add table
Add a link
Reference in a new issue