-
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.
Merge pull request #3 from noxxusnx/new_dockerfile
update dockerfile to create continuous environment
- Loading branch information
Showing
1 changed file
with
15 additions
and
6 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,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"] |