Bladeren bron

Dockerfile for mono repo yarn/npm apps

Mokhtar Naamani 4 jaren geleden
bovenliggende
commit
705bcc5415
1 gewijzigde bestanden met toevoegingen van 18 en 0 verwijderingen
  1. 18 0
      apps.Dockerfile

+ 18 - 0
apps.Dockerfile

@@ -0,0 +1,18 @@
+FROM node:12
+
+WORKDIR /joystream
+COPY . /joystream
+
+# Setup npm prefix
+# RUN echo "prefix=${HOME}/npm" > ${HOME}/.npmrc 
+# ENV PATH=$PATH:$HOME/npm/bin/
+
+RUN npm -g install yarn
+
+ENV NODE_ENV=production
+RUN yarn
+RUN yarn workspace pioneer build
+RUN yarn workspace @joystream/cli build
+RUN yarn workspace storage-node build
+
+ENTRYPOINT [ "yarn" ]