{"id":19250941,"url":"https://github.com/imsalmanmalik/deploy-static-html-website-as-nginx-container","last_synced_at":"2026-06-28T23:30:18.043Z","repository":{"id":161204952,"uuid":"598242670","full_name":"imsalmanmalik/Deploy-Static-HTML-Website-as-Nginx-Container","owner":"imsalmanmalik","description":"Running a web server Nginx inside a Docker container and hosting a basic website.","archived":false,"fork":false,"pushed_at":"2023-02-06T18:21:38.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T06:28:38.521Z","etag":null,"topics":["docker","html","nginx-server"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imsalmanmalik.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":"2023-02-06T17:46:45.000Z","updated_at":"2023-03-09T15:54:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d12c38e-455b-43c1-82f0-d75dc065e1c6","html_url":"https://github.com/imsalmanmalik/Deploy-Static-HTML-Website-as-Nginx-Container","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/imsalmanmalik%2FDeploy-Static-HTML-Website-as-Nginx-Container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsalmanmalik%2FDeploy-Static-HTML-Website-as-Nginx-Container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsalmanmalik%2FDeploy-Static-HTML-Website-as-Nginx-Container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsalmanmalik%2FDeploy-Static-HTML-Website-as-Nginx-Container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imsalmanmalik","download_url":"https://codeload.github.com/imsalmanmalik/Deploy-Static-HTML-Website-as-Nginx-Container/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240347760,"owners_count":19787230,"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":["docker","html","nginx-server"],"created_at":"2024-11-09T18:19:21.876Z","updated_at":"2026-06-28T23:30:18.000Z","avatar_url":"https://github.com/imsalmanmalik.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploy-Static-HTML-Website-using-Nginx-Container\nRunning a web server Nginx inside a Docker container and hosting a basic website.\n## Wrapping in a base image in the dockerfile\n`FROM nginx:alpine` \n\n## Copying files from current directory to Nginx web server public directory\n`COPY .  /usr/share/nginx/html`\n\n## Building a Docker image\n`Docker build -t webserver-image:v1 .`\n\n## Running a Docker container\n`docker run -d -p 80:80 webserver-image:v1`\n\n## Checking for working container images\n`docker ps`\n\n## Checking memory usage\n`docker stats`\n\n## HTML starter template\n`\u003c!doctype html\u003e\n\u003chtml lang=\"en\"\u003e\n  \u003chead\u003e\n    \u003c!-- Required meta tags --\u003e\n    \u003cmeta charset=\"utf-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\"\u003e\n\n    \u003c!-- Bootstrap CSS --\u003e\n    \u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css\" integrity=\"sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh\" crossorigin=\"anonymous\"\u003e\n\n    \u003ctitle\u003eHello, world!\u003c/title\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003ch1\u003eHello, world! This is my Docker Container\u003c/h1\u003e\n\n    \u003c!-- Optional JavaScript --\u003e\n    \u003c!-- jQuery first, then Popper.js, then Bootstrap JS --\u003e\n    \u003cscript src=\"https://code.jquery.com/jquery-3.4.1.slim.min.js\" integrity=\"sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n\" crossorigin=\"anonymous\"\u003e\u003c/script\u003e\n    \u003cscript src=\"https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js\" integrity=\"sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo\" crossorigin=\"anonymous\"\u003e\u003c/script\u003e\n    \u003cscript src=\"https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.min.js\" integrity=\"sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6\" crossorigin=\"anonymous\"\u003e\u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimsalmanmalik%2Fdeploy-static-html-website-as-nginx-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimsalmanmalik%2Fdeploy-static-html-website-as-nginx-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimsalmanmalik%2Fdeploy-static-html-website-as-nginx-container/lists"}