-
Notifications
You must be signed in to change notification settings - Fork 23
/
Dockerfile
22 lines (16 loc) · 1.09 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM heroku/heroku:18
RUN apt-get update && apt-get install -y ffmpeg
WORKDIR /root
COPY . .
RUN curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /bin/youtube-dl
RUN curl -sSL https://github.com/cxjava/j2ee/releases/download/v0.0.2/simhei.ttf -o /root/simhei.ttf
RUN curl -sSL $(curl -sSL https://api.github.com/repos/cxjava/goreman/releases | grep browser_download_url | grep 'linux_amd64' | head -n 1 | cut -d '"' -f 4) | zcat > /bin/goreman
RUN curl -sSL $(curl -sSL https://api.github.com/repos/cxjava/heroku-aria2c-youtube-dl/releases | grep browser_download_url | grep 'linux_amd64' | head -n 1 | cut -d '"' -f 4) | zcat > /bin/heroku-aria2c-youtube-dl
RUN curl -sSL https://downloads.rclone.org/v1.51.0/rclone-v1.51.0-linux-amd64.zip -o /root/rclone-v1.51.0-linux-amd64.zip && unzip -n /root/rclone-v1.51.0-linux-amd64.zip -d /bin && mv /bin/rclone-v1.51.0-linux-amd64/rclone /bin/rclone
RUN chmod +x /bin/goreman /root/run.sh /bin/heroku-aria2c-youtube-dl /bin/rclone
RUN chmod a+rx /bin/youtube-dl
RUN useradd -m heroku
USER heroku
EXPOSE 5000
COPY Procfile Procfile
CMD goreman -b=$PORT start