Gonzalo Javier Aune
5 years ago
3 changed files with 33 additions and 49 deletions
@ -1,24 +0,0 @@ |
|||
FROM node:8 |
|||
RUN apt-get update |
|||
RUN apt-get install -f sqlite3 |
|||
RUN mkdir /relay/ |
|||
RUN chown -R node:node /relay |
|||
RUN chmod -R 777 /relay |
|||
USER node |
|||
# ENV NPM_CONFIG_PREFIX=/relay/.npm-global |
|||
# ENV PATH=$PATH:/relay/.npm-global/bin |
|||
WORKDIR /relay/ |
|||
COPY package.json . |
|||
RUN npm install |
|||
RUN npm install nodemon --save-dev |
|||
RUN npm install express --save-dev |
|||
RUN npm install webpack webpack-cli --save-dev |
|||
RUN npm install sqlite3 --build-from-source --save-dev |
|||
RUN npm install --save-dev sequelize |
|||
RUN npm rebuild |
|||
COPY . . |
|||
USER root |
|||
RUN chmod -R 777 /relay |
|||
RUN chown -R node:node /relay |
|||
USER node |
|||
RUN npm run tsc |
Loading…
Reference in new issue