forked from L4GSP1KE/Upload-Assistant
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Seems to work
- Loading branch information
Showing
1 changed file
with
16 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |