conf update for e2e tests

This commit is contained in:
SamR1
2018-01-13 21:20:32 +01:00
parent 41abdc13c4
commit 2a83d7e105
2 changed files with 34 additions and 6 deletions

View File

@ -16,13 +16,10 @@ ENV REACT_APP_USERS_SERVICE_URL $REACT_APP_USERS_SERVICE_URL
# install and cache app dependencies
ADD package.json /usr/src/app/package.json
RUN npm install --silent
RUN npm install pushstate-server -g --silent
RUN npm install react-scripts -g
# add app
ADD . /usr/src/app/
# build react app
RUN npm run build
# start app
CMD ["pushstate-server", "build"]
CMD ["npm", "start"]