-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (34 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM php:7.4-zts
# Tell scraper to always output to downloads directory, which the user should mount it as a volume
ENV SCRAPER_DOCKERIZED=1
RUN apt-get update && \
apt-get install -y ca-certificates apt-utils && \
apt-get install -y gpg software-properties-common && \
apt-get update && \
add-apt-repository ppa:jonathonf/ffmpeg-4 && \
apt-get install -y ffmpeg
RUN apt-get install -y git unzip
RUN mv /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
RUN pear config-set php_ini /usr/local/etc/php/php.ini
RUN pecl install parallel
RUN docker-php-ext-install opcache
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php composer-setup.php && \
php -r "unlink('composer-setup.php');" && \
mv composer.phar /usr/local/bin/composer
RUN apt-get remove -y software-properties-common apt-utils
RUN apt autoremove --purge -y
RUN apt-get clean
COPY composer* /app/
COPY src /app/src
COPY LICENSE.txt /app/
RUN mkdir /downloads
WORKDIR /app
RUN composer install --no-dev
RUN rm -rf /tmp/**
RUN apt-get remove -y git unzip
RUN apt autoremove --purge -y
RUN apt-get clean
LABEL version=0.1.2
LABEL maintainer="Eboubaker Bekkouche"
ENTRYPOINT ["php", "src/scrap.php"]