docker-nginx-h5ai/Dockerfile

24 lines
833 B
Docker
Raw Permalink Normal View History

2023-05-01 13:52:40 -04:00
FROM nephatrine/nxbuilder:alpine AS builder
2022-03-04 15:57:07 -05:00
ARG H5AI_VERSION=0.31.0
2023-04-17 12:20:48 -04:00
RUN git -C /root clone -b "$H5AI_VERSION" --single-branch --depth=1 https://github.com/glubsy/h5ai.git
2022-04-20 17:06:13 -04:00
2023-04-15 08:35:03 -04:00
ARG NODE_OPTIONS=--openssl-legacy-provider
2022-03-04 15:57:07 -05:00
RUN echo "====== COMPILE H5AI ======" \
2023-04-17 12:20:48 -04:00
&& cd /root/h5ai \
2022-03-04 15:57:07 -05:00
&& npm install && npm run build \
2022-04-20 17:06:13 -04:00
&& mkdir -p /var/www/html/ \
&& unzip build/*.zip -d /var/www/html/
2022-05-14 11:49:00 -04:00
FROM nephatrine/nginx-php:latest
2022-04-20 17:06:13 -04:00
LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
2022-05-14 11:49:00 -04:00
RUN echo "====== INSTALL PACKAGES ======" \
2022-04-20 17:06:13 -04:00
&& apk add --no-cache ffmpeg imagemagick zip \
&& sed -i 's~/mnt/config/www/~/mnt/config/www/:/mnt/media/~g' /etc/php/php-fpm.d/www.conf \
&& sed -i 's~index.html~index.html /_h5ai/public/index.php~g' /etc/nginx/nginx.conf \
&& mkdir -p /mnt/media
2018-05-14 18:14:48 -04:00
2022-04-20 17:06:13 -04:00
COPY --from=builder /var/www/html/ /var/www/html/
COPY override /