Skip to content

Instantly share code, notes, and snippets.

@hyndsite
Last active February 17, 2017 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hyndsite/d4e3fd09cccc8f7c0f2544c0eddcb460 to your computer and use it in GitHub Desktop.
Save hyndsite/d4e3fd09cccc8f7c0f2544c0eddcb460 to your computer and use it in GitHub Desktop.
Alternate Dockerfile for production using the mhart/alpine-node base image.
FROM mhart/alpine-node:6.9.2
MAINTAINER Max McCarty
ENV NODE_ENV=production PORT=7000
COPY . /var/app
WORKDIR /var/app
EXPOSE $PORT
RUN apk add --no-cache make gcc g++ python
RUN npm install --production
RUN npm run build:prod
CMD ["npm", "run", "start:prod", "--production"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment