From 1138e66bc7dd6efbb83ccc28f92cab7505f8ebce Mon Sep 17 00:00:00 2001 From: marcobaobao Date: Wed, 5 Jun 2024 09:14:59 +0200 Subject: [PATCH] reverted base image to alpine, updated makefile --- Dockerfile | 6 ++---- Makefile | 3 +++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fb9cd29..6e8f4b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/Makefile b/Makefile index 75bf0a7..36f61ca 100644 --- a/Makefile +++ b/Makefile @@ -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