Initial commit

This commit is contained in:
Carl Pearson
2024-09-06 10:47:41 -06:00
commit 1720727c9e
15 changed files with 721 additions and 0 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM golang:1.23.0-bookworm as builder
ADD *.go /src/.
ADD go.mod /src
RUN cd /src && go mod tidy
RUN cd /src && go build -o server *.go
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ffmpeg wget
RUN wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux -O /usr/local/bin/yt-dlp \
&& chmod +x /usr/local/bin/yt-dlp
COPY --from=0 /src/server /opt/server
ADD templates /opt/templates
WORKDIR /opt
CMD ["/opt/server"]