Skip to content

Instantly share code, notes, and snippets.

@battlecow
Created July 30, 2019 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save battlecow/7d98a64088e9ed3a2fb9283700a19fea to your computer and use it in GitHub Desktop.
Save battlecow/7d98a64088e9ed3a2fb9283700a19fea to your computer and use it in GitHub Desktop.
FROM node:10-alpine
ENV NODE_ENV production
USER node
WORKDIR /home/node
COPY --chown=node:node . .
RUN cp ./api/package*json ./ && \
npm install
WORKDIR /home/node/api
EXPOSE 3000
CMD ["node", "app.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment