{"id":23034242,"url":"https://github.com/lucasfrancaid/docker-python-serverless-offline","last_synced_at":"2025-04-02T22:20:25.623Z","repository":{"id":118150696,"uuid":"374077448","full_name":"lucasfrancaid/docker-python-serverless-offline","owner":"lucasfrancaid","description":"A docker image to run python lambda functions with serverless offline.","archived":false,"fork":false,"pushed_at":"2021-11-15T20:03:25.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T12:46:01.025Z","etag":null,"topics":["docker","docker-image","python3","serverless","serverless-framework","serverless-offline","serverless-offline-plugin"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/lucasfrancaid/python-serverless-offline","language":"Shell","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/lucasfrancaid.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":"2021-06-05T09:50:01.000Z","updated_at":"2021-11-15T20:03:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e3d7b0d-07be-435e-ac40-05abc7f84222","html_url":"https://github.com/lucasfrancaid/docker-python-serverless-offline","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasfrancaid%2Fdocker-python-serverless-offline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasfrancaid%2Fdocker-python-serverless-offline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasfrancaid%2Fdocker-python-serverless-offline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasfrancaid%2Fdocker-python-serverless-offline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasfrancaid","download_url":"https://codeload.github.com/lucasfrancaid/docker-python-serverless-offline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246900189,"owners_count":20852007,"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","python3","serverless","serverless-framework","serverless-offline","serverless-offline-plugin"],"created_at":"2024-12-15T16:30:35.496Z","updated_at":"2025-04-02T22:20:25.602Z","avatar_url":"https://github.com/lucasfrancaid.png","language":"Shell","readme":"[![Docker Image CI](https://github.com/lucasfrancaid/docker-python-serverless-offline/actions/workflows/docker-image.yml/badge.svg?branch=master)](https://github.com/lucasfrancaid/docker-python-serverless-offline/actions/workflows/docker-image.yml)\n\n# Docker Python Serverless Offline\nAn image to run your python offline\n\n## Disclaimers\nIf you need a connection with a postgres database, use lucasfrancaid/python-serverless-offline:slim-buster.  \nThe serverless.yml is required to setup your offline app.\n\n## Usage with Docker Compose\nCreate a docker-compose.yml in your directory and paste:\n```yml\nversion: '3.8'\n\nservices:\n  serverless:\n    container_name: python_serverless\n    image: lucasfrancaid/python-serverless-offline:alpine  # or slim-buster \n    ports:\n      - '3000:3000'\n    volumes:\n      - .:/usr/app\n```\n\n*A requirements.txt file is required to install dependencies. If you not have dependencies, just ignore. But, if you have, add a requriments.txt in the same path of docker-compose.yml*\n\nRun serverless-offline:\n```bash\ndocker-compose up\n```\n\n## Environment variables\nIf you need access aws resources, you can add environment variables. Follow example: [docker-compose.yml](./docker-compose.yml)  \nAvailable variables:\n```yml\nHTTP_PORT: 3001  # [OPTIONAL] Default is 3000. If you change http port, you should change your port routing in docker-compose.yml\nSERVERLESS_ACCESS_KEY: \u003cSERVERLESS_ACCESS_KEY\u003e  # [OPTIONAL] Used to access resources of serverless framework\nAWS_ACCESS_KEY_ID: \u003cAWS_ACCESS_KEY_ID\u003e  # [OPTIONAL] Is required if you need use aws resources, e.g.: DynamoDB\nAWS_SECRET_ACCESS_KEY: \u003cAWS_SECRET_ACCESS_KEY\u003e  # [OPTIONAL] Is required if you need use aws resources, e.g.: DynamoDB\n```\n\n## Contribute\nHelp me to write a better image to python-serverless-offline\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasfrancaid%2Fdocker-python-serverless-offline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasfrancaid%2Fdocker-python-serverless-offline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasfrancaid%2Fdocker-python-serverless-offline/lists"}