Created
July 12, 2017 20:07
-
-
Save thomasmichaelwallace/1b05e361bb56b627c9832750f7f4423c to your computer and use it in GitHub Desktop.
A simple dockerfile for working with native npm modules in serverless.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM amazonlinux:latest | |
# set locale | |
RUN echo LC_ALL=en_GB.UTF-8 >> /etc/environment | |
ENV LC_ALL=en_GB.UTF-8 | |
# install node and build tools | |
RUN curl --silent --location https://rpm.nodesource.com/setup_6.x | bash - && \ | |
yum install -y nodejs gcc-c++ make git | |
# install serverless | |
RUN npm install -g serverless |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment