Advertisement
petrikjosef

Untitled

Mar 15th, 2022
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. FROM node:14.18.1-alpine
  2.  
  3. RUN apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community --repository http://dl-3.alpinelinux.org/alpine/edge/main vips-dev
  4.  
  5. RUN apk add --no-cache --virtual .gyp build-base gcc autoconf automake zlib-dev libpng-dev nasm
  6. #RUN apk add --no-cache --virtual .gyp \
  7. # python2 \
  8. # make \
  9. # gcc \
  10. # g++
  11.  
  12. WORKDIR /app
  13.  
  14. ENV APP_KEYS="f669240cc4db7c3381480b,83c62f7581234885o3t0mn"
  15.  
  16.  
  17. RUN npm install --global --force yarn
  18. #TODO improve -> COPY only packages and remove . . in dev copy files that are needed to run npm run develop, and in production copy all files
  19. #COPY ./package.json .
  20. #COPY ./package-lock.json .
  21.  
  22. COPY . .
  23.  
  24. RUN yarn install --network-timeout 100000
  25. RUN apk del .gyp
  26. RUN NODE_ENV=production yarn build
  27.  
  28. EXPOSE 1337
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement