Add Dockerfile

Add docker-compose.yml
This commit is contained in:
Réda HAMADI 2022-04-23 19:16:49 +02:00
parent 0dca62a97a
commit 3e0358bf21
2 changed files with 20 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM golang:latest
WORKDIR /usr/src/app
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
RUN go build
CMD [ "sh", "-c", "./chaturbate-dvr -u $USERNAME" ]

9
docker-compose.yml Normal file
View File

@ -0,0 +1,9 @@
version: "3.0"
services:
chaturbate-dvr:
build: .
environment:
- USERNAME=my_lovely_channel_name
volumes:
- ./video/my_lovely_channel_name:/usr/src/app/video