{"id":19874174,"url":"https://github.com/pythoninthegrass/john_dockerfile","last_synced_at":"2025-03-01T01:23:08.305Z","repository":{"id":85073755,"uuid":"593025063","full_name":"pythoninthegrass/john_dockerfile","owner":"pythoninthegrass","description":"john_dockerfile","archived":false,"fork":false,"pushed_at":"2023-01-25T03:31:48.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T16:50:27.950Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/pythoninthegrass.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":"2023-01-25T03:23:09.000Z","updated_at":"2023-01-25T03:23:30.000Z","dependencies_parsed_at":"2023-03-08T20:00:51.348Z","dependency_job_id":null,"html_url":"https://github.com/pythoninthegrass/john_dockerfile","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/pythoninthegrass%2Fjohn_dockerfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fjohn_dockerfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fjohn_dockerfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fjohn_dockerfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythoninthegrass","download_url":"https://codeload.github.com/pythoninthegrass/john_dockerfile/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241301815,"owners_count":19940713,"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-12T16:22:06.923Z","updated_at":"2025-03-01T01:23:08.285Z","avatar_url":"https://github.com/pythoninthegrass.png","language":"Dockerfile","readme":"# john_dockerfile\n\nHi John!\n\nWhile I don't have the bandwidth to make a django demo repo, figured a short and sweet POC would suffice. Copied some docs from my [python_template](https://github.com/pythoninthegrass/python_template) repo for your reference. ~~(Did add a django folder as well, but it's been a bit since I've tested it haha.)~~\n\nTwo commands to get it working with just docker:\n\n```\nλ docker build -t john-docker .\n\nλ docker run -it --rm -v $(PWD):/app john-docker bash\napp@a02770ca0530:/app$ ls -l\ntotal 20\n-rw-r--r-- 1 app app  529 Jan 25 03:02 Dockerfile\n-rw-r--r-- 1 app app    0 Jan 25 02:50 README.md\n-rwxr-xr-x 1 app app  519 Jan 25 03:08 hello.py\n-rw-r--r-- 1 app app 3733 Jan 25 03:07 poetry.lock\n-rw-r--r-- 1 app app  395 Jan 25 03:07 pyproject.toml\n-rw-r--r-- 1 app app    1 Jan 25 03:06 requirements.txt\n```\n\nTurns out the [django example](django/) _does_ work! 🥳\n```bash\n# move to django directory\ncd django\n\n# build without cached layers and concurrently (useless without multistage, but hey)\ndocker-compose build --no-cache --parallel\n\n# start container(s) and get rid of orphaned builds\ndocker-compose up --remove-orphans -d\n\n# navigate to localhost:8000\n\n# remove\ndocker-compose down # stop is another option\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Fjohn_dockerfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythoninthegrass%2Fjohn_dockerfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Fjohn_dockerfile/lists"}