docker-twitchlite/helix/Dockerfile

28 lines
824 B
Docker

FROM php:8.2.18-fpm-bullseye@sha256:5d171ccd5635cc7e2b3f60b616dfb213a488950e2c77d82058427cc59252df8d
RUN set -ex; \
\
groupadd --system foo; \
useradd --no-log-init --system --gid foo --create-home foo; \
\
apt-get update; \
apt-get install -y --no-install-recommends \
gosu \
git \
; \
mkdir -p /usr/share/twitchlite /var/www/twitchlite; \
git clone --branch helix https://github.com/mwalbeck/twitchlite.git /usr/share/twitchlite; \
rm -r /usr/share/twitchlite/.git /usr/share/twitchlite/.gitignore;\
\
apt-get purge -y --auto-remove git; \
rm -rf /var/lib/apt/lists/*; \
\
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini";
COPY entrypoint.sh /entrypoint.sh
WORKDIR /var/www/twitchlite
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]