Skip to content

Commit

Permalink
Merge pull request #3 from noxxusnx/new_dockerfile
Browse files Browse the repository at this point in the history
update dockerfile to create continuous environment
  • Loading branch information
edge20200 authored May 11, 2024
2 parents a31959f + 47e203a commit cceedcc
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 cceedcc

Please sign in to comment.