Image that contains the resource to build applications using the serverless framework
10K+
This repo contains the Dockerfiles for an ubuntu image containing nodejs and the serverless framework. The image is designed to support development and build environments targeted at AWS.
The code is organized by folders representing the serverless framework version installed.
The serverless version should also be used to tag the image based on the Dockerfile in that version-named folder.
When you are ready to create an image based on a newer version of node, simply create the folder name representing the version and include the new Dockerfile inside it.
The build is automated via Dockerhub, so you should never need to build it locally, unless you are working on a new version and need to test locally.
Don't neglect the '.' at the end
docker build -f {version}/Dockerfile -t gamestop/gs.docker.buildenv.serverless:{version} .
For example, to build the 1.25.0 image, use the following build command.
docker build -f 1.25.0/Dockerfile -t gamestop/gs.docker.buildenv.serverless:1.25.0 .
docker run --rm -it gamestop/gs.docker.buildenv.serverless:{version} bash
Once you are at the container's prompt, you can verify the version of serverless installed by typing:
sls --version
Content type
Image
Digest
Size
347.5 MB
Last updated
over 6 years ago
docker pull gamestop/gs.docker.buildenv.serverless:1.25.0