Skip to content

Commit

Permalink
update dockerfile to create continuous environment
Browse files Browse the repository at this point in the history
  • Loading branch information
noxxusnx committed May 11, 2024
1 parent cbb6bc7 commit 47e203a
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
# 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"]

0 comments on commit 47e203a

Please sign in to comment.