From 52a263aa201b4c7ea234905d6b7eae7343265535 Mon Sep 17 00:00:00 2001 From: Gabe Date: Tue, 25 Apr 2023 09:57:54 +0000 Subject: [PATCH] Updated Dockerfile --- Dockerfile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index f95bd03..644397e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,16 +3,21 @@ FROM python:3.9-alpine as base RUN apk --update add ffmpeg FROM base as builder -RUN mkdir /install + +RUN apk --update add git + WORKDIR /install COPY requirements.txt /requirements.txt -RUN apk add gcc libc-dev zlib zlib-dev jpeg-dev \ - && pip install --prefix="/install" -r /requirements.txt +RUN apk add gcc libc-dev zlib zlib-dev jpeg-dev +RUN pip install --prefix="/install" -r /requirements.txt FROM base -COPY --from=builder /install /usr/local +COPY --from=builder /install /usr/local/lib/python3.9/site-packages +RUN mv /usr/local/lib/python3.9/site-packages/lib/python3.9/site-packages/* /usr/local/lib/python3.9/site-packages/ + COPY zotify /app/zotify + WORKDIR /app -ENTRYPOINT ["python3", "-m", "zotify"] +CMD ["python3", "-m", "zotify"]