From 80e606e4660141a60eafa0f3c18a25f1cb46d639 Mon Sep 17 00:00:00 2001 From: Timo Taskinen Date: Thu, 1 Feb 2024 11:56:57 +0200 Subject: [PATCH] Change base image to python --- Dockerfile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2bf4fee..89e9332 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,20 @@ -FROM alpine:latest +FROM python:3.12-slim LABEL maintainer="Timo Taskinen " -RUN apk update && apk add --no-cache \ +RUN apt-get update && apt-get install -y \ bash \ + build-essential \ ffmpeg \ - gcc \ libffi-dev \ libxml2-dev \ libxslt-dev \ - make \ - musl-dev \ pipx \ - python3 \ python3-dev \ - wget + wget \ + && rm -rf /var/lib/apt/lists/* -RUN pipx install yle-dl +RUN pipx ensurepath +RUN PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin pipx install yle-dl WORKDIR /out -ENTRYPOINT ["/root/.local/bin/yle-dl"] +ENTRYPOINT ["yle-dl"]