{"id":19412244,"url":"https://github.com/shipping-docker/php-for-zeit","last_synced_at":"2025-04-24T11:31:06.452Z","repository":{"id":89430578,"uuid":"83729148","full_name":"shipping-docker/php-for-zeit","owner":"shipping-docker","description":"A test repo to run Nginx/PHP on zeit.co","archived":false,"fork":false,"pushed_at":"2017-03-02T22:04:06.000Z","size":3,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T04:12:14.271Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shipping-docker.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-03-02T22:03:44.000Z","updated_at":"2023-03-10T11:57:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"514f1a7d-2102-465e-9ee6-8bd6ffd4baa4","html_url":"https://github.com/shipping-docker/php-for-zeit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shipping-docker%2Fphp-for-zeit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shipping-docker%2Fphp-for-zeit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shipping-docker%2Fphp-for-zeit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shipping-docker%2Fphp-for-zeit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shipping-docker","download_url":"https://codeload.github.com/shipping-docker/php-for-zeit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250618135,"owners_count":21460035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-10T12:25:54.253Z","updated_at":"2025-04-24T11:31:06.443Z","avatar_url":"https://github.com/shipping-docker.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dockerized PHP/Nginx for Zeit\n\nA test repo to run Nginx/PHP on zeit.co.\n\n## Build It:\n\n```bash\ndocker build zeit:latest .\n```\n\n## Run it:\n\nWe can run it and see it in our browser at `localhost`.\n\n\u003e You'll get an error if you have something listening on port 80 already. Use an alternative port in that case - `-p 8888:80`\n\n```bash\nmkdir public\necho \"\u003c?php phpinfo();\" \u003e public/index.php\n\n# Note we expect directory \"public\"\n# to be in our current working directory\ndocker run -dit --rm \\\n    --name=myphp\n    -v $(pwd):/var/www/html -p 80:80 zeit \n```\n\nWe can also run one-off commands\n\n```bash\n# Make a new container and creat a one-off command\n# In which case, we set the current working directory\ndocker run -dit --rm \\\n    -v $(pwd):/var/www/html\n    -w /var/www/html \\\n    zeit composer update\n```\n\nOr run a command from within an already-running container\n\n```bash\n# Assume container is named \"myphp\"\ndocker exec -it myphp sh -c \"cd /var/www/html \u0026\u0026 composer update\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshipping-docker%2Fphp-for-zeit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshipping-docker%2Fphp-for-zeit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshipping-docker%2Fphp-for-zeit/lists"}