{"id":21664058,"url":"https://github.com/deepurai/docker","last_synced_at":"2026-04-15T08:33:54.039Z","repository":{"id":135333532,"uuid":"187459972","full_name":"deepuRai/Docker","owner":"deepuRai","description":"Dockerize PHP application","archived":false,"fork":false,"pushed_at":"2019-05-19T10:15:22.000Z","size":592,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-20T06:18:03.081Z","etag":null,"topics":["docker","docker-image","dockerfile"],"latest_commit_sha":null,"homepage":"","language":null,"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/deepuRai.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":"2019-05-19T09:57:48.000Z","updated_at":"2020-01-23T18:02:53.000Z","dependencies_parsed_at":"2024-04-18T23:45:35.320Z","dependency_job_id":null,"html_url":"https://github.com/deepuRai/Docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deepuRai/Docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepuRai%2FDocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepuRai%2FDocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepuRai%2FDocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepuRai%2FDocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepuRai","download_url":"https://codeload.github.com/deepuRai/Docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepuRai%2FDocker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31833830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T07:17:56.427Z","status":"ssl_error","status_checked_at":"2026-04-15T07:17:30.007Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","docker-image","dockerfile"],"created_at":"2024-11-25T10:31:38.555Z","updated_at":"2026-04-15T08:33:53.999Z","avatar_url":"https://github.com/deepuRai.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"#Dockerize PHP Application on Ubuntu 18.04\n\nStep 1 :- Install docker with below url \n\nhttps://linuxconfig.org/how-to-install-docker-on-ubuntu-18-04-bionic-beaver\n\n\nStep 2 :- Install Git by running \"sudo apt-get install  git\"\n\nStep 3:- Clone Git Repository\n\nmkdir docker_php\ncd docker_php\ngit clone https://github.com/deepuRai/Docker.git\n\n\nStep 4 :- Create a file with name “Dockerfile” inside docker_php directory. Copy below contents to the Dockerfile and save it.\n\nFROM ubuntu:18.04\nMAINTAINER Deepak Rai \u003cdeepak.ray1987@gmail.com\u003e\n \n#Update Repository\nRUN apt-get update -y\n \n#Install Apache\nRUN apt-get install -y apache2\n \n#Install PHP Modules\nRUN apt-get install -y php7.0 libapache2-mod-php7.0 php7.0-cli php7.0-common php7.0-mbstring php7.0-gd php7.0-intl php7.0-xml php7.0-mysql php7.0-mcrypt php7.0-zip\n \n#Copy Application Files\nRUN rm -rf /var/www/html/*\nADD dockerize-php-application /var/www/html\n \n#Configure Apache (Optional)\nRUN chown -R www-data:www-data /var/www\nENV APACHE_RUN_USER www-data\nENV APACHE_RUN_GROUP www-data\nENV APACHE_LOG_DIR /var/log/apache2\n \n#Open port 80\nEXPOSE 80\n \n#Start Apache service\nCMD [\"/usr/sbin/apache2ctl\", \"-D\", \"FOREGROUND\"]\n\n\n\nStep 5 :- Build new Docker image using below command\n\ndocker build -t drai/dockerize-php-application .\n\n\nStep 6 :- Display docker images\n\ndocker images\n\n\nStep 7 :- Start a Docker container based on the new image\n\ndocker run -itd -p 80:80 drai/dockerize-php-application\n\nStep 8 :- Check container status using below command and make sure the status is UP\n\ndocker ps -a\n\n\nStep 9 :- Access the application using below URL\n\nhttp://host/index.php\n\n\n#Pushing image to docker hub \n\n\nStep 1 :- Login to shell of Docker container using below command\n\n\tdocker exec -it  bash\n\nStep 2 :- Use below command to login to Docker Hub. Provide your Docker Hub username and password when prompted\n\n\tdocker login\n\nStep 3 :- Push your image to Docker Hub using below command\n\n\tdocker push drai/dockerize-php-application\n\n\n\nOther Info about Docker \n\nPull Docker image from Docker Hub\n\n\tdocker pull drai/dockerize-php-application\n\nRemove Docker image\n\n\tdocker rmi -f \n\nRemove docker container\n\n\tdocker rm -f \n\tdocker rm -f $(docker ps -aq)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepurai%2Fdocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepurai%2Fdocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepurai%2Fdocker/lists"}