-
-
Save hyndsite/d4e3fd09cccc8f7c0f2544c0eddcb460 to your computer and use it in GitHub Desktop.
Alternate Dockerfile for production using the mhart/alpine-node base image.
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 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