Skip to content

Instantly share code, notes, and snippets.

@simenbrekken
Created March 13, 2016 09:22
Show Gist options
  • Save simenbrekken/3ec0fd1203764c12f552 to your computer and use it in GitHub Desktop.
Save simenbrekken/3ec0fd1203764c12f552 to your computer and use it in GitHub Desktop.
FROM binarytales/heroku-nodejs
ENV NODE_ENV=production
WORKDIR /app
# Cache npm install
COPY package.json .
RUN npm install
# Copy assets and build
COPY . .
RUN npm run build
EXPOSE 3000
CMD ["npm", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment