reverted base image to alpine, updated makefile

This commit is contained in:
2024-06-05 09:14:59 +02:00
parent 589468ed0e
commit 1138e66bc7
2 changed files with 5 additions and 4 deletions

View File

@@ -25,15 +25,13 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o yt-dlp-webui
# -----------------------------------------------------------------------------
# dependencies ----------------------------------------------------------------
FROM cgr.dev/chainguard/wolfi-base
FROM alpine:edge
RUN apk update && \
apk add ffmpeg ca-certificates python3 py3-pip wget
apk add ffmpeg yt-dlp ca-certificates curl wget
VOLUME /downloads /config
RUN python3 -m pip install yt-dlp
WORKDIR /app
COPY --from=build /usr/src/yt-dlp-webui/yt-dlp-webui /app

View File

@@ -6,6 +6,9 @@ default:
fe:
cd frontend && pnpm build
dev:
cd frontend && pnpm dev
all:
$(MAKE) fe && cd ..
CGO_ENABLED=0 go build -o yt-dlp-webui main.go