This is a docker image which can be used for the development of Serverless Applications.
156
docker image for serverless development
docker build -t yasi92/serverless-dev .
# run the image to get a shell
docker run -it --name svless -v ~/projects/svless:/home/svless -p 8000:8000 yasi92/serverless-dev /bin/bash
# run the image to execute a sls command and delete the container
docker run --rm -v ~/projects/svless:/home/svless yasi92/serverless-dev
# pass the AWS credential env vars. from host
docker run -it --name svless \
-v ~/projects/svless:/home/svless \
-e AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY \
yasi92/serverless-dev /bin/bash
OR
# pass the AWS credentials file from host
docker run -it --name svrless \
-v ~/projects/svrless:/home/svrless \
--env-file ~/.aws/credentials \
rupakg/serverless-docker /bin/bash
Then, run aws configure and pass in the AWS credentials.
Content type
Image
Digest
Size
303.7 MB
Last updated
almost 7 years ago
docker pull yasi92/serverless-dev