Skip to content

Commit

Permalink
Update docker for my VS install
Browse files Browse the repository at this point in the history
Seems to work
  • Loading branch information
Audionut committed May 13, 2024
1 parent 935b1d6 commit a1d2763
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions Dockerfile
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"]

0 comments on commit a1d2763

Please sign in to comment.