mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
14 lines
377 B
Docker
14 lines
377 B
Docker
FROM node:4-alpine
|
|
|
|
WORKDIR /function
|
|
|
|
# Install ImageMagick and AWS SDK as provided by Lambda.
|
|
RUN apk update && apk --no-cache add imagemagick
|
|
RUN npm install aws-sdk@2.2.32 imagemagick && npm cache clear
|
|
|
|
# cli should forbid this name
|
|
ADD bootstrap.js /function/lambda-bootstrap.js
|
|
|
|
# Run the handler, with a payload in the future.
|
|
ENTRYPOINT ["node", "./lambda-bootstrap"]
|