-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge pull request #18 from edge20200/PullUpdates
Pull updates
Showing
23 changed files
with
1,468 additions
and
919 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ data/cookies/*.pickle | |
.vscode/ | ||
__pycache__/ | ||
tmp/* | ||
.wdm/ | ||
.wdm/ | ||
.vs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
FROM alpine:latest | ||
|
||
# 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 | ||
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 UploadAssistant | ||
|
||
# Install python requirements | ||
FROM python:3.11 | ||
|
||
# Update the package list and install system dependencies including mono | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
ffmpeg \ | ||
mediainfo \ | ||
git \ | ||
g++ \ | ||
cargo \ | ||
mktorrent \ | ||
rustc \ | ||
mono-complete && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Set up a virtual environment to isolate our Python dependencies | ||
RUN python -m venv /venv | ||
ENV PATH="/venv/bin:$PATH" | ||
|
||
# Install wheel and other Python dependencies | ||
RUN pip install --upgrade pip wheel | ||
|
||
# Set the working directory in the container | ||
WORKDIR /Only-Uploader | ||
|
||
# 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 shell command alias | ||
RUN echo 'alias l4g="/Only-Uploader/upload.py"' >> /root/.bashrc | ||
|
||
# Start container and tail to keep container running | ||
CMD ["/bin/bash", "-c", "tail -f /dev/null"] | ||
# Set the entry point for the container | ||
ENTRYPOINT ["python", "/Only-Uploader/upload.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.