Add dockerfiles goodie
This commit is contained in:
parent
bded0b69b2
commit
0e520fe937
23
goodies/Dockerfile
Normal file
23
goodies/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
FROM debian
|
||||||
|
MAINTAINER Leon Etienne
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
|
||||||
|
RUN apt-get install -y \
|
||||||
|
python3 \
|
||||||
|
python3-pip
|
||||||
|
|
||||||
|
RUN pip install \
|
||||||
|
yt-dlp
|
||||||
|
|
||||||
|
RUN apt-get install -y \
|
||||||
|
ffmpeg
|
||||||
|
|
||||||
|
COPY ./entrypoint.sh /app/entrypoint.sh
|
||||||
|
RUN chmod +x /app/entrypoint.sh
|
||||||
|
|
||||||
|
WORKDIR /app/
|
||||||
|
|
||||||
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||||
|
CMD ["./Tubio"]
|
||||||
|
|
4
goodies/README.md
Normal file
4
goodies/README.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Dockerfiles
|
||||||
|
Here are basic dockerfiles to get an image running.
|
||||||
|
They are expected (all three) to be lying within the same directory as the Tubio executable.
|
||||||
|
|
18
goodies/docker-compose.yml
Normal file
18
goodies/docker-compose.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
main:
|
||||||
|
build: .
|
||||||
|
restart: always
|
||||||
|
container_name: tubio
|
||||||
|
volumes:
|
||||||
|
- .:/app
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
|
||||||
|
ports:
|
||||||
|
- 80:80
|
||||||
|
|
||||||
|
environment:
|
||||||
|
- TZ=Europe/Berlin
|
||||||
|
|
5
goodies/entrypoint.sh
Normal file
5
goodies/entrypoint.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd instance
|
||||||
|
exec $@
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user