| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- # Environment variables
- ARG PUID
- ARG PGID
- ARG USER
- ARG PHP_TZ
- FROM console:latest
- ARG PUID
- ARG PGID
- ARG USER
- ARG PHP_TZ
- # Install base dependencies, add user and group, install php libraries
- RUN apt update -y
- RUN apt upgrade -qy
- RUN apt install -qy --no-install-recommends ca-certificates curl apt-transport-https
- RUN curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
- RUN dpkg -i /tmp/debsuryorg-archive-keyring.deb
- RUN sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ trixie main" > /etc/apt/sources.list.d/php.list'
- RUN apt update
- RUN apt install -qy --no-install-recommends \
- adduser \
- nginx-light \
- php8.4-mysql \
- php8.4-pgsql \
- php8.4-sqlite3 \
- php8.4-imagick \
- php8.4-mbstring \
- php8.4-gd \
- php8.4-xml \
- php8.4-zip \
- php8.4-fpm \
- php8.4-redis \
- php8.4-bcmath \
- php8.4-intl \
- libimage-exiftool-perl \
- ffmpeg \
- jpegoptim \
- optipng \
- pngquant \
- gifsicle \
- webp \
- unzip
- RUN addgroup --gid "$PGID" "$USER"
- RUN adduser --gecos '' --no-create-home --disabled-password --uid "$PUID" --gid "$PGID" "$USER"
- #COPY nginx.conf /etc/nginx/nginx.conf
- COPY start.sh /root/start.sh
- RUN chmod +x /root/start.sh
- RUN apt install -y git
- RUN cd /var/www/html && git clone https://github.com/LycheeOrg/Lychee.git
- RUN apt install composer -y
- RUN cd /var/www/html/Lychee && composer install --no-dev
- RUN apt install npm -y
- RUN cd /var/www/html/Lychee && npm install && npm run build
- CMD ["/start.sh"]
|