Skip to content

Instantly share code, notes, and snippets.

@ilya-muhortov
Created May 19, 2024 01:07
Show Gist options
  • Save ilya-muhortov/f61e5f1942867c37bbfb806c14552d2a to your computer and use it in GitHub Desktop.
Save ilya-muhortov/f61e5f1942867c37bbfb806c14552d2a to your computer and use it in GitHub Desktop.
Docker nginx include ngx_http_redis_module.so
FROM soulteary/prebuilt-nginx-modules:ngx-1.21.1-redis-0.3.9 as builder
FROM nginx:1.21.1-perl
RUN rm /etc/nginx/conf.d/default.conf
COPY ./Dockerfiles/settings/nginx/nginx.conf /etc/nginx/nginx.conf
COPY ./Dockerfiles/settings/nginx/medicine.conf /etc/nginx/conf.d/medicine.conf
COPY ./Dockerfiles/ssl-certs/ /etc/nginx/ssl-certs/
COPY ./application/ /app/application/
COPY --from=builder /ngx_http_redis_module.so /ngx_http_redis_module.so
CMD ["nginx", "-g", "daemon off;"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment