{"id":20778566,"url":"https://github.com/caoxiaolin/docker-alpine-nginx-php7","last_synced_at":"2026-04-06T08:31:30.797Z","repository":{"id":95998645,"uuid":"119803808","full_name":"caoxiaolin/docker-alpine-nginx-php7","owner":"caoxiaolin","description":":whale: A docker image, include nginx \u0026 php7, base alpine","archived":false,"fork":false,"pushed_at":"2018-02-01T10:10:56.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T22:16:11.263Z","etag":null,"topics":["alpine","docker-image","nginx","php"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caoxiaolin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-01T08:07:05.000Z","updated_at":"2019-02-23T15:01:22.000Z","dependencies_parsed_at":"2023-09-01T21:38:54.301Z","dependency_job_id":null,"html_url":"https://github.com/caoxiaolin/docker-alpine-nginx-php7","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/caoxiaolin/docker-alpine-nginx-php7","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caoxiaolin%2Fdocker-alpine-nginx-php7","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caoxiaolin%2Fdocker-alpine-nginx-php7/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caoxiaolin%2Fdocker-alpine-nginx-php7/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caoxiaolin%2Fdocker-alpine-nginx-php7/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caoxiaolin","download_url":"https://codeload.github.com/caoxiaolin/docker-alpine-nginx-php7/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caoxiaolin%2Fdocker-alpine-nginx-php7/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31464604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpine","docker-image","nginx","php"],"created_at":"2024-11-17T13:23:02.292Z","updated_at":"2026-04-06T08:31:30.780Z","avatar_url":"https://github.com/caoxiaolin.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-alpine-nginx-php7\nA docker image, include nginx \u0026amp; php7, base alpine\n\n# usage\n\u003cpre\u003e\n\u003ccode\u003e\nrong@debian:/home/docker$ git clone https://github.com/caoxiaolin/docker-alpine-nginx-php7.git ./\n正克隆到 '.'...\nremote: Counting objects: 19, done.\nremote: Compressing objects: 100% (12/12), done.\nremote: Total 19 (delta 0), reused 13 (delta 0), pack-reused 0\n展开对象中: 100% (19/19), 完成.\n检查连接... 完成。\nrong@debian:/home/docker$ ls\nbuild-docker  config  Dockerfile  LICENSE  README.md  run-docker  www\nrong@debian:/home/docker$ mkdir -p logs/nginx logs/php\nrong@debian:/home/docker$ ./build-docker \nSending build context to Docker daemon  88.58kB\nStep 1/6 : FROM alpine\n ---\u003e 3fd9065eaf02\nStep 2/6 : MAINTAINER caoxiaolin\n ---\u003e Running in 6a2a58740ad2\n ---\u003e 3c072d78e8ce\nRemoving intermediate container 6a2a58740ad2\nStep 3/6 : RUN mkdir -p /run/nginx/ /var/log/supervisord /etc/supervisord     \u0026\u0026 apk add --update supervisor nginx nginx-mod-http-lua php7 php7-fpm php7-mysqli php7-pdo_mysql php7-mbstring php7-json php7-zlib php7-gd php7-curl php7-session php7-opcache php7-redis php7-mcrypt     \u0026\u0026 rm -rf /var/cache/apk/* /tmp/*     \u0026\u0026 chown nginx:nginx /run/nginx/\n ---\u003e Running in 2cc89a929546\nfetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz\nfetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz\n(1/57) Installing pcre (8.41-r1)\n(2/57) Installing nginx (1.12.2-r3)\nExecuting nginx-1.12.2-r3.pre-install\n(3/57) Installing nginx-mod-devel-kit (1.12.2-r3)\n(4/57) Installing libgcc (6.4.0-r5)\n(5/57) Installing luajit (2.1.0_beta3-r0)\n(6/57) Installing nginx-mod-http-lua (1.12.2-r3)\n(7/57) Installing php7-common (7.1.12-r0)\n(8/57) Installing ncurses-terminfo-base (6.0_p20171125-r0)\n(9/57) Installing ncurses-terminfo (6.0_p20171125-r0)\n(10/57) Installing ncurses-libs (6.0_p20171125-r0)\n(11/57) Installing libedit (20170329.3.1-r3)\n(12/57) Installing libxml2 (2.9.7-r0)\n(13/57) Installing php7 (7.1.12-r0)\n(14/57) Installing ca-certificates (20171114-r0)\n(15/57) Installing libssh2 (1.8.0-r2)\n(16/57) Installing libcurl (7.57.0-r0)\n(17/57) Installing php7-curl (7.1.12-r0)\n(18/57) Installing php7-fpm (7.1.12-r0)\n(19/57) Installing libxau (1.0.8-r2)\n(20/57) Installing libbsd (0.8.6-r1)\n(21/57) Installing libxdmcp (1.1.2-r4)\n(22/57) Installing libxcb (1.12-r1)\n(23/57) Installing libx11 (1.6.5-r1)\n(24/57) Installing libxext (1.3.3-r2)\n(25/57) Installing libice (1.0.9-r2)\n(26/57) Installing libuuid (2.31-r0)\n(27/57) Installing libsm (1.2.2-r1)\n(28/57) Installing libxt (1.1.5-r1)\n(29/57) Installing libxpm (3.5.12-r0)\n(30/57) Installing libbz2 (1.0.6-r6)\n(31/57) Installing libpng (1.6.34-r1)\n(32/57) Installing freetype (2.8.1-r2)\n(33/57) Installing libjpeg-turbo (1.5.2-r0)\n(34/57) Installing libwebp (0.6.0-r1)\n(35/57) Installing php7-gd (7.1.12-r0)\n(36/57) Installing php7-json (7.1.12-r0)\n(37/57) Installing php7-mbstring (7.1.12-r0)\n(38/57) Installing libmcrypt (2.5.8-r7)\n(39/57) Installing php7-mcrypt (7.1.12-r0)\n(40/57) Installing php7-openssl (7.1.12-r0)\n(41/57) Installing php7-mysqlnd (7.1.12-r0)\n(42/57) Installing php7-mysqli (7.1.12-r0)\n(43/57) Installing php7-opcache (7.1.12-r0)\n(44/57) Installing php7-pdo (7.1.12-r0)\n(45/57) Installing php7-pdo_mysql (7.1.12-r0)\n(46/57) Installing php7-session (7.1.12-r0)\n(47/57) Installing php7-redis (3.1.4-r0)\n(48/57) Installing php7-zlib (7.1.12-r0)\n(49/57) Installing expat (2.2.5-r0)\n(50/57) Installing libffi (3.2.1-r4)\n(51/57) Installing gdbm (1.13-r1)\n(52/57) Installing readline (7.0.003-r0)\n(53/57) Installing sqlite-libs (3.21.0-r0)\n(54/57) Installing python2 (2.7.14-r2)\n(55/57) Installing py-meld3 (1.0.2-r1)\n(56/57) Installing py-setuptools (33.1.1-r1)\n(57/57) Installing supervisor (3.3.3-r1)\nExecuting busybox-1.27.2-r7.trigger\nExecuting ca-certificates-20171114-r0.trigger\nOK: 83 MiB in 68 packages\n ---\u003e 7d6e83d4ebe0\nRemoving intermediate container 2cc89a929546\nStep 4/6 : ADD config/supervisord.conf /etc/supervisord.conf\n ---\u003e 782684aa4629\nStep 5/6 : EXPOSE 80 443\n ---\u003e Running in 3ffdea5f9ffd\n ---\u003e e3489c9c00bc\nRemoving intermediate container 3ffdea5f9ffd\nStep 6/6 : CMD /usr/bin/supervisord -n -c /etc/supervisord.conf\n ---\u003e Running in 7d126a7c0a81\n ---\u003e b56d6aef2782\nRemoving intermediate container 7d126a7c0a81\nSuccessfully built b56d6aef2782\nSuccessfully tagged webserver:latest\nrong@debian:/home/docker$ docker images\nREPOSITORY                TAG                 IMAGE ID            CREATED             SIZE\nwebserver                 latest              b56d6aef2782        5 minutes ago       82MB\nrong@debian:/home/docker$ ./run-docker \n6fed6c317b9eab204143a59fd9b17aedec3bddd60f6e866073cfdf5934fa734f\nrong@debian:/home/docker$ docker ps\nCONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                           NAMES\n6fed6c317b9e        webserver           \"/usr/bin/supervis...\"   1 minutes ago       Up 1 minutes        443/tcp, 0.0.0.0:8081-\u003e80/tcp   webserver\nrong@debian:/home/docker$ tail -f logs/nginx/*\n==\u003e logs/nginx/access.log \u003c==\n192.168.41.1 - - [01/Feb/2018:08:22:44 +0000] \"GET / HTTP/1.1\" 200 84312 \"-\" \"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0\" \"-\"\n\n==\u003e logs/nginx/error.log \u003c==\n\u003c/code\u003e\n\u003c/pre\u003e\n\n# 浏览器访问\n![avatar](https://raw.githubusercontent.com/caoxiaolin/resources/master/docker-nginx-php7.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaoxiaolin%2Fdocker-alpine-nginx-php7","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaoxiaolin%2Fdocker-alpine-nginx-php7","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaoxiaolin%2Fdocker-alpine-nginx-php7/lists"}