From 47e203a877bde0550a841c69c8b59c510fcd4c80 Mon Sep 17 00:00:00 2001 From: noxxusnx Date: Sat, 11 May 2024 16:51:11 -0400 Subject: [PATCH] update dockerfile to create continuous environment --- Dockerfile | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4c3e3ccb..fdf8c2ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,28 @@ FROM alpine:latest -# add mono repo and mono +# Install bash +RUN apk add --no-cache bash + +# Add mono repo and mono RUN apk add --no-cache mono --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing -# install requirements +# Install requirements RUN apk add --no-cache --upgrade ffmpeg mediainfo python3 git py3-pip python3-dev g++ cargo mktorrent rust +RUN python3 -m venv /opt/venv +ENV PATH="/opt/venv/bin:$PATH" RUN pip3 install wheel -WORKDIR Upload-Assistant +WORKDIR UploadAssistant -# install reqs +# Install python requirements COPY requirements.txt . RUN pip3 install -r requirements.txt -# copy everything +# Copy everything COPY . . -ENTRYPOINT ["python3", "/Upload-Assistant/upload.py"] \ No newline at end of file +# Set shell command alias +RUN echo 'alias l4g="/UploadAssistant/upload.py"' >> /root/.bashrc + +# Start container and tail to keep container running +CMD ["/bin/bash", "-c", "tail -f /dev/null"]