{"id":18355090,"url":"https://github.com/achanandhi-m/dockerize-go","last_synced_at":"2025-04-10T01:36:44.380Z","repository":{"id":241056874,"uuid":"803664591","full_name":"Achanandhi-M/dockerize-go","owner":"Achanandhi-M","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-05T18:04:03.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T16:51:35.976Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/Achanandhi-M.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":"2024-05-21T06:50:32.000Z","updated_at":"2024-07-05T18:05:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"3eaf44b2-910c-4913-89e0-db317add1968","html_url":"https://github.com/Achanandhi-M/dockerize-go","commit_stats":null,"previous_names":["achanandhi-m/shapeblock-test-go-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achanandhi-M%2Fdockerize-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achanandhi-M%2Fdockerize-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achanandhi-M%2Fdockerize-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achanandhi-M%2Fdockerize-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Achanandhi-M","download_url":"https://codeload.github.com/Achanandhi-M/dockerize-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248141211,"owners_count":21054411,"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-05T22:05:57.647Z","updated_at":"2025-04-10T01:36:44.358Z","avatar_url":"https://github.com/Achanandhi-M.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Web Application\n\nThis is a simple Go web application that responds with \"Hello, World!\" when accessed. This README provides instructions for building and running the application using Docker with both single-stage and multi-stage builds.\n\n## Prerequisites\n\n- Docker installed on your machine\n- Go installed on your machine (if you want to run locally without Docker)\n\n## Running Locally\n\nTo run the application locally without Docker, execute the following commands:\n\n```sh\ngo run main.go\n```\n\nThe application will start and listen on port 8080. You can access it at `http://localhost:8080`.\n\n## Docker Build and Run\n\n### Single-Stage Docker Build\n\n1. Create a `Dockerfile` with the following content:\n\n2. Build the Docker image:\n\n    ```sh\n    docker build -t go-web-app .\n    ```\n\n3. Run the Docker container:\n\n    ```sh\n    docker run -p 8080:8080 go-web-app\n    ```\n\n### Multi-Stage Docker Build\n\n1. Create a `Dockerfile.multi-stage` with the following content:\n\n2. Build the Docker image:\n\n    ```sh\n    docker build -t go-web-app-multi .\n    ```\n\n3. Run the Docker container:\n\n    ```sh\n    docker run -p 8080:8080 go-web-app-multi\n    ```\n\n## Access the Application\n\nOnce the container is running, you can access the application in your web browser at `http://localhost:8080`. You should see the message \"Hello, World!\".\n\n## Files\n\n- `test.go`: The main Go application file.\n- `Dockerfile`: Dockerfile for single-stage build.\n- `Dockerfile.multi-stage`: Dockerfile for multi-stage build.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachanandhi-m%2Fdockerize-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fachanandhi-m%2Fdockerize-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachanandhi-m%2Fdockerize-go/lists"}