{"id":26469813,"url":"https://github.com/ocdbytes/pythonapp_dockerised","last_synced_at":"2025-03-19T17:09:29.014Z","repository":{"id":113749905,"uuid":"502599405","full_name":"ocdbytes/pythonapp_dockerised","owner":"ocdbytes","description":"Simple python script to image in docker and running it in a container","archived":false,"fork":false,"pushed_at":"2022-06-12T11:43:53.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-14T10:46:09.510Z","etag":null,"topics":["docker","docker-image","dockerfile","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/ocdbytes.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}},"created_at":"2022-06-12T11:42:04.000Z","updated_at":"2022-06-12T14:36:39.000Z","dependencies_parsed_at":"2023-03-30T08:55:00.246Z","dependency_job_id":null,"html_url":"https://github.com/ocdbytes/pythonapp_dockerised","commit_stats":null,"previous_names":["ocdbytes/pythonapp_dockerised"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2Fpythonapp_dockerised","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2Fpythonapp_dockerised/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2Fpythonapp_dockerised/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2Fpythonapp_dockerised/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ocdbytes","download_url":"https://codeload.github.com/ocdbytes/pythonapp_dockerised/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244470251,"owners_count":20457908,"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","docker-image","dockerfile","python3"],"created_at":"2025-03-19T17:09:28.529Z","updated_at":"2025-03-19T17:09:28.998Z","avatar_url":"https://github.com/ocdbytes.png","language":"Python","readme":"# Python Application Dockerised\n\n## ⚠️ I don't own this script\n\nThis script is taken from python-engineer's movie picker just for learning to dockerise the application\n\nLink : https://github.com/python-engineer/python-fun/blob/master/moviepicker/main.py\n\n## Dockerising\n\nFirst we need to make our dockerfile in order to dockerise it\n\n```Dockerfile\n# Dockerfile, Image, Container\n\nFROM python:3.8\n\nADD main.py .\n\nRUN pip install requests beautifulsoup4\n\nCMD [\"python\", \"./main.py\"]\n```\n\nNow we will create an image out of it :\n\nOpen your terminal\n\n```bash\ndocker build -t python-movie-imdb .\n```\n\nCheck if your image is build using\n\n```bash\ndocker images\n\n# OUTPUT\n\nREPOSITORY          TAG       IMAGE ID       CREATED          SIZE\npython-movie-imdb   latest    80eca***2e87   25 seconds ago   923MB\ndebian              latest    4ea***30377a   2 weeks ago      124MB\nhello-world         latest    feb5d9****a5   8 months ago     13.3kB\n```\n\nRun you image in a container\n\n```bash\ndocker run -it python-movie-imdb\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focdbytes%2Fpythonapp_dockerised","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focdbytes%2Fpythonapp_dockerised","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focdbytes%2Fpythonapp_dockerised/lists"}