apps.Dockerfile 796 B

1234567891011121314151617181920212223242526272829
  1. # FROM node:12
  2. FROM ubuntu:18.04 as builder
  3. # Install any needed packages
  4. RUN apt-get update && apt-get install -y curl git gnupg
  5. # install nodejs
  6. RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
  7. RUN apt-get install -y nodejs
  8. WORKDIR /joystream
  9. RUN npm install -g yarn
  10. COPY . /joystream
  11. RUN NODE_ENV=production yarn install --frozen-lockfile
  12. # install globally - used to build translations in pioneer but for some reason
  13. # insn't installed into node_modules/.bin or pioneer/node_modules/.bin after running
  14. # yarn install
  15. RUN npm install -g i18next-scanner
  16. # RUN yarn workspace pioneer build:code
  17. RUN yarn workspace pioneer build
  18. RUN yarn workspace @joystream/cli build
  19. RUN yarn workspace storage-node build
  20. ENV PATH="${PATH}:/joystream/node_modules/.bin"
  21. ENTRYPOINT [ "yarn" ]