Skip to content

Instantly share code, notes, and snippets.

@thomasmichaelwallace
Created July 12, 2017 20:07
Show Gist options
  • Save thomasmichaelwallace/1b05e361bb56b627c9832750f7f4423c to your computer and use it in GitHub Desktop.
Save thomasmichaelwallace/1b05e361bb56b627c9832750f7f4423c to your computer and use it in GitHub Desktop.
A simple dockerfile for working with native npm modules in serverless.
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