Docker services on my home NAS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
720 B

ARG NGINX_VERSION=stable
FROM nginx:${NGINX_VERSION}-alpine
ARG APK_MIRROR=dl-cdn.alpinelinux.org
COPY nginx.run /usr/bin/
COPY nginx/nginx.conf /etc/nginx/
COPY nginx/conf.d/ /etc/nginx/conf.d/
COPY nginx/srv/ /srv/
ADD nginx/h5ai-0.30.0.tar.gz /srv/http/files/
RUN sed -i "s/dl-cdn.alpinelinux.org/${APK_MIRROR}/g" /etc/apk/repositories && \
apk add --no-cache php81-fpm php81-session php81-ctype php81-pdo php81-openssl && \
find /srv/http/files/_h5ai -type d -exec chmod a+x {} + && \
chmod -R a+rw /srv/http/files/_h5ai && \
chown -R nginx:nginx /srv/http
COPY php-fpm/www.conf /etc/php81/php-fpm.d/
COPY php-fpm/php.ini /etc/php81/
VOLUME ["/etc/nginx", "/srv/http"]
ENTRYPOINT ["nginx.run"]