Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve docker-compose issues in #69 #83

Open
wants to merge 16 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add youtube-dl to Dockerfile
  • Loading branch information
squ1rr3lly committed Aug 19, 2020
commit 213c163859e3e9c7e5414f6bfd6d5db10fbec268
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ COPY . /app

RUN apk add --no-cache bash openssl zip unzip oniguruma-dev zlib-dev libpng-dev libzip-dev postgresql-dev gmp gmp-dev nodejs npm python3 git libcap

#
RUN setcap cap_net_raw+eip /app/app/entrypoint-shaark.sh && \
setcap cap_sys_admin+eip /app/app/entrypoint-shaark.sh

@@ -45,6 +46,11 @@ RUN addgroup -S pptruser && adduser -S -g pptruser pptruser \
&& chown -R pptruser:pptruser /home/pptruser \
&& chown -R pptruser:pptruser /app

# Install youtube-dl binary
RUN curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/bin/youtube-dl && \
chmod a+rx /usr/bin/youtube-dl

# Make sure python binary is python3
RUN if [ ! -e /usr/bin/python ]; then ln -sf /usr/bin/python3 /usr/bin/python; fi

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \