forked from SpEcHiDe/PublicLeech
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
11 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,21 +1,38 @@ | ||
FROM ubuntu:20.04 | ||
# creates a layer from the ubuntu:18.04 Docker image. | ||
FROM ubuntu:18.04 | ||
|
||
WORKDIR /app | ||
|
||
# to resynchronize the package index files from their sources. | ||
RUN apt -qq update | ||
|
||
# http://bugs.python.org/issue19846 | ||
# https://github.com/SpEcHiDe/PublicLeech/pull/97 | ||
ENV LANG C.UTF-8 | ||
|
||
# sets the TimeZon, to be used inside the container | ||
ENV TZ Asia/Kolkata | ||
|
||
# we don't have an interactive xTerm | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
# install required packages | ||
RUN apt -qq install -y curl git gnupg2 wget \ | ||
apt-transport-https \ | ||
python3 python3-pip \ | ||
coreutils aria2 jq pv \ | ||
ffmpeg mediainfo rclone | ||
|
||
# each instruction creates one layer | ||
# Only the instructions RUN, COPY, ADD create layers. | ||
# copies 'requirements', to inside the container | ||
COPY requirements.txt . | ||
|
||
# install requirements, inside the container | ||
RUN pip3 install --no-cache-dir -r requirements.txt | ||
|
||
# adds files from your Docker client’s current directory. | ||
COPY . . | ||
|
||
# specifies what command to run within the container. | ||
CMD ["python3", "-m", "tobrot"] |
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