2022-05-12 03:19:25 +03:00
|
|
|
FROM php:7.4.29-fpm
|
2021-05-13 20:57:10 +03:00
|
|
|
|
|
|
|
LABEL description="RSS-Bridge is a PHP project capable of generating RSS and Atom feeds for websites that don't have one."
|
|
|
|
LABEL repository="https://github.com/RSS-Bridge/rss-bridge"
|
|
|
|
LABEL website="https://github.com/RSS-Bridge/rss-bridge"
|
|
|
|
|
2022-05-12 03:19:25 +03:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install --yes --no-install-recommends \
|
|
|
|
nginx \
|
|
|
|
zlib1g-dev \
|
2022-05-12 03:21:56 +03:00
|
|
|
libzip-dev \
|
2022-05-12 03:19:25 +03:00
|
|
|
libmemcached-dev && \
|
2022-05-12 03:21:56 +03:00
|
|
|
docker-php-ext-install zip && \
|
2022-05-12 03:19:25 +03:00
|
|
|
pecl install memcached && \
|
|
|
|
docker-php-ext-enable memcached && \
|
2022-10-09 22:14:24 +03:00
|
|
|
docker-php-ext-enable opcache && \
|
2022-05-12 03:19:25 +03:00
|
|
|
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
2018-06-23 17:51:48 +03:00
|
|
|
|
2022-05-12 03:19:25 +03:00
|
|
|
COPY ./config/nginx.conf /etc/nginx/sites-enabled/default
|
2019-06-01 12:25:01 +03:00
|
|
|
|
2021-09-05 06:10:54 +03:00
|
|
|
COPY --chown=www-data:www-data ./ /app/
|
|
|
|
|
2022-05-30 21:05:42 +03:00
|
|
|
EXPOSE 80
|
|
|
|
|
2022-05-12 03:19:25 +03:00
|
|
|
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|