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