From 02d64b8adfab3d4db528ecbc05b214254069e254 Mon Sep 17 00:00:00 2001 From: sparanoid Date: Wed, 27 Jul 2022 12:28:06 -0400 Subject: [PATCH] feat(docker): refine working dir and volume --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4e1a7fd..8ab41ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM python:3.8.5-alpine +WORKDIR /app + RUN apk update -f \ && apk add --no-cache -f \ bash \ @@ -21,10 +23,8 @@ RUN apk update -f \ RUN pip install --no-cache-dir --upgrade streamlink yq yt-dlp -COPY ./live-dl /app/ -COPY ./config.example.yml /app/config.yml -RUN chmod a+x /app/live-dl - -VOLUME /app/ +COPY ./live-dl ./ +COPY ./config.example.yml ./config.yml +RUN chmod a+x ./live-dl -ENTRYPOINT ["/app/live-dl"] +ENTRYPOINT ["./live-dl"]