Sign inSign up

gamestop/gs.docker.buildenv.serverless

By gamestop

Updated over 6 years ago

Image that contains the resource to build applications using the serverless framework

Image
0

10K+

gamestop/gs.docker.buildenv.serverless repository overview

gs.docker.buildenv.serverless

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.

Source

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.

Build

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 .

Run

docker run --rm -it gamestop/gs.docker.buildenv.serverless:{version} bash

Test

Once you are at the container's prompt, you can verify the version of serverless installed by typing:

sls --version

Tag summary

Content type

Image

Digest

Size

347.5 MB

Last updated

over 6 years ago

docker pull gamestop/gs.docker.buildenv.serverless:1.25.0