27 lines
823 B
Docker
27 lines
823 B
Docker
FROM php:8.4.5-fpm-bullseye@sha256:05230701e8b33143a21013053bf03c72d8631acb26496fc9d880b69e83adc7b9
|
|
|
|
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"]
|