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.
21 lines
611 B
21 lines
611 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 && \
|
|
find /srv/http/files/_h5ai -type d -exec chmod a+x {} + && \
|
|
chmod -R a+rw /srv/http/files/_h5ai
|
|
|
|
COPY php-fpm/www.conf /etc/php81/php-fpm.d/
|
|
|
|
VOLUME ["/etc/nginx", "/srv/http"]
|
|
|
|
ENTRYPOINT ["nginx.run"]
|
|
|