Advertisement
the0938

Untitled

May 18th, 2021
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. # Base image
  2. FROM node:alpine
  3.  
  4. # Create & set working directory
  5. RUN mkdir -p /usr/src
  6. WORKDIR /usr/src
  7.  
  8. # Copy source files
  9. COPY . /usr/src
  10.  
  11. # Install dependencies
  12. RUN yarn
  13.  
  14. # Start app using environment from NODE_ENV
  15. ARG NODE_ENV
  16. ENV NODE_ENV=${NODE_ENV}
  17. RUN yarn build
  18.  
  19. EXPOSE 3000
  20. CMD yarn start
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement