From a1d2763413e54ae8aa4d76c480a7e784869be0ff Mon Sep 17 00:00:00 2001 From: Audionut Date: Mon, 13 May 2024 20:36:06 +1000 Subject: [PATCH] Update docker for my VS install Seems to work --- Dockerfile | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4c3e3ccba..1d051748e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,27 @@ FROM alpine:latest -# add mono repo and mono +# Add mono repository and install mono RUN apk add --no-cache mono --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing -# install requirements -RUN apk add --no-cache --upgrade ffmpeg mediainfo python3 git py3-pip python3-dev g++ cargo mktorrent rust -RUN pip3 install wheel +# Install system dependencies including Python and tools +RUN apk add --no-cache --upgrade ffmpeg mediainfo python3 git py3-pip python3-dev g++ cargo mktorrent rust -WORKDIR Upload-Assistant +# Set up a virtual environment to isolate our Python dependencies +RUN python3 -m venv /venv +ENV PATH="/venv/bin:$PATH" -# install reqs +# Install wheel and other Python dependencies +RUN pip install wheel + +# Set the working directory in the container +WORKDIR /Upload-Assistant + +# Copy the Python requirements file and install Python dependencies COPY requirements.txt . -RUN pip3 install -r requirements.txt +RUN pip install -r requirements.txt -# copy everything +# Copy the rest of the application's code COPY . . +# Set the entry point for the container ENTRYPOINT ["python3", "/Upload-Assistant/upload.py"] \ No newline at end of file