lucamilan
11/15/2017 - 1:40 PM

Dockerfile for serverless offline & dynamodb

Dockerfile for serverless offline & dynamodb

#!/bin/bash

docker run -v $PWD:/app -v $HOME/.aws:/root/.aws -ti klab/serverless npm run $1
#!/bin/bash

docker build -t klab/serverless .
FROM node

RUN npm install --silent --save-dev -g \
        serverless@1.24.1 \
        serverless-dynamodb-local \
        serverless-offline \
        aws-sdk \
    && apt-get -y update && apt-get install -y \
       default-jre

VOLUME /root/.aws
COPY . /app/
WORKDIR /app

RUN serverless dynamodb install

CMD bash