ttrss-container/app/Dockerfile

22 lines
548 B
Docker
Raw Normal View History

2019-11-15 12:51:55 +00:00
FROM alpine:3.9
EXPOSE 9000/tcp
RUN apk add --no-cache php7 php7-fpm \
php7-pdo php7-gd php7-pgsql php7-pdo_pgsql php7-mbstring \
php7-intl php7-xml php7-curl php7-session \
php7-dom php7-fileinfo php7-json \
php7-pcntl php7-posix \
git postgresql-client sudo
2019-11-15 12:51:55 +00:00
ADD startup.sh /
2019-11-15 18:18:49 +00:00
ADD index.php /
2019-11-15 12:51:55 +00:00
RUN sed -i.bak 's/^listen = 127.0.0.1:9000/listen = 9000/' /etc/php7/php-fpm.d/www.conf
2019-11-15 14:42:50 +00:00
ARG OWNER_UID
ARG OWNER_GID
RUN mkdir -p /var/www && addgroup -g ${OWNER_GID} app && adduser -D -h /var/www/html -G app -u ${OWNER_UID} app
2019-11-15 12:51:55 +00:00
CMD /startup.sh