Skip to content

Instantly share code, notes, and snippets.

@faiyaz26
Created August 27, 2018 14:12
Show Gist options
  • Save faiyaz26/fc57e13a23f5780005e389175dcdd08e to your computer and use it in GitHub Desktop.
Save faiyaz26/fc57e13a23f5780005e389175dcdd08e to your computer and use it in GitHub Desktop.
FROM node:8
WORKDIR /usr/src/app
COPY /public /usr/src/app/public
COPY package.json .
COPY config.js .
COPY server.js .
RUN npm install
ENV ENV_NAME prod
ENV REDIS_URL redis
EXPOSE 3000
ENTRYPOINT ["node", "server.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment