{"id":13700633,"url":"https://github.com/amaysim-au/docker-serverless","last_synced_at":"2025-05-04T19:33:17.792Z","repository":{"id":21629384,"uuid":"93385734","full_name":"amaysim-au/docker-serverless","owner":"amaysim-au","description":"Docker image containing NodeJS, Serverless Framework and Yarn.","archived":false,"fork":false,"pushed_at":"2024-11-12T23:48:10.000Z","size":263,"stargazers_count":84,"open_issues_count":1,"forks_count":56,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-13T00:20:30.625Z","etag":null,"topics":["apigw","docker-image","docker-serverless","nodejs","serverless-framework","yarn"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amaysim-au.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":"2017-06-05T09:07:12.000Z","updated_at":"2024-11-12T23:48:12.000Z","dependencies_parsed_at":"2024-01-29T02:03:39.197Z","dependency_job_id":"3c6b680e-a7fa-42a1-9a0a-68998d031f83","html_url":"https://github.com/amaysim-au/docker-serverless","commit_stats":{"total_commits":111,"total_committers":19,"mean_commits":5.842105263157895,"dds":0.6396396396396397,"last_synced_commit":"e70cb58d10e6873c894dbbe1e3745b055151ebd3"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaysim-au%2Fdocker-serverless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaysim-au%2Fdocker-serverless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaysim-au%2Fdocker-serverless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaysim-au%2Fdocker-serverless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amaysim-au","download_url":"https://codeload.github.com/amaysim-au/docker-serverless/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224406065,"owners_count":17305718,"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":["apigw","docker-image","docker-serverless","nodejs","serverless-framework","yarn"],"created_at":"2024-08-02T20:00:59.640Z","updated_at":"2024-11-13T06:31:25.686Z","avatar_url":"https://github.com/amaysim-au.png","language":"Makefile","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"readme":"# amaysim/serverless\n\n[![npm](https://img.shields.io/npm/v/serverless)](https://www.npmjs.com/package/serverless)\n[![deploy status](https://github.com/amaysim-au/docker-serverless/workflows/Deploy/badge.svg)](https://github.com/amaysim-au/docker-serverless/actions)\n[![image version](https://img.shields.io/docker/v/amaysim/serverless?label=image%20version)](https://hub.docker.com/r/amaysim/serverless)\n[![docker pulls](https://img.shields.io/docker/pulls/amaysim/serverless)](https://hub.docker.com/r/amaysim/serverless)\n[![docker image size](https://img.shields.io/docker/image-size/amaysim/serverless)](https://hub.docker.com/r/amaysim/serverless)\n[![License](https://img.shields.io/dub/l/vibe-d.svg)](LICENSE)\n\n[![Serverless Application Framework AWS Lambda API Gateway](./assets/serverless-framework.png)](http://serverless.com)\n\nDocker image containing NodeJS, Serverless Framework and Yarn.\n\n## Usage\n\n### Docker run command\n\n```bash\n# running Serverless version 1.72.0\n$ docker run --rm amaysim/serverless:1.72.0 serverless --help\n```\n\n## Development\n\n### Prerequisites\n\n- Docker\n- Buildx\n- Make\n\n### Build image locally\n\n```bash\n# build image locally with latest Serverless version\n$ make build\n\n# build image locally with specific Serverless version\n$ make build SERVERLESS_VERSION=1.72.0\n\n# go inside the container\n$ make shell\n\n# testing multi arch build with buildx\n# you may need to create a builder first\n$ docker buildx create --name mybuilder --use\n$ make buildMultiArch\n\n# run the test\n$ make ciTest\n```\n\n## Docker image update automation\n\nPeriodically, once a week, a new amaysim/serverless Docker image containing the lastest version of Serverless is being built with [GitHub Actions](https://github.com/amaysim-au/docker-serverless/actions). This means that there is no need for someone to manually update and tag the image whenever there is a new Serverless version.\n\n## Contributing\n\nThe project follows the typical [GitHub pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests) model. Before starting any work, please either comment on an existing issue, or file a new one.\n\n1. [Fork](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) this repository\n1. Clone the forked repository\n1. Create a new branch with a meaningful name (optional)\n1. Make your changes\n1. Test locally (see section \"Development\")\n1. Commit and push your changes\n1. Create a [pull request from a fork](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork)\n\n## Docker image\n\nThe Docker image has the following:\n\n- Node LTS (12.14.0) Alpine: we leverage Babel to be compatible with AWS Lambda runtime\n- [Serverless Framework](https://serverless.com/framework/)\n- [yarn](https://github.com/yarnpkg/yarn)\n- zip: handy to zip your own serverless artifact\n- [AWS CLI](https://github.com/aws/aws-cli): required by some Serverless plug-ins to work\n\n## References\n\n- https://docs.docker.com/desktop/multi-arch/\n- https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/\n- https://github.com/docker/setup-buildx-action\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaysim-au%2Fdocker-serverless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famaysim-au%2Fdocker-serverless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaysim-au%2Fdocker-serverless/lists"}