Quasar in Docker
-
Hey, i want to use quasar in docker but it gives me the following error:
quasar | quasar | I App [SPA with MAT theme] at http://localhost:8095/ quasar | quasar | Error: Error: Exited with code 3 quasar | quasar | - index.js:84 ChildProcess.cp.once.code quasar | [www]/[opn]/index.js:84:13 quasar | quasar | - child_process.js:936 maybeClose quasar | internal/child_process.js:936:16 quasar | quasar | - child_process.js:353 Socket.stream.socket.on quasar | internal/child_process.js:353:11 quasar |
My dockerfile looks like this:
FROM node:8.9.0 RUN apt-get update -qq \ && apt-get install -y build-essential ARG APPLICATION="." ARG APPLICATION_WORKDIR="/var/www" COPY ${APPLICATION} ${APPLICATION_WORKDIR} WORKDIR ${APPLICATION_WORKDIR} # Expose is for dev server EXPOSE 8095 RUN npm install RUN npm rebuild node-sass RUN npm install -g quasar-cli CMD ["quasar", "dev"]
I already tried the quasar docker setup but its over 1 year old and not working. So maybe somebody has a working configuration for me or can help me with mine.
-
Ok with help i could fix this problem. Its cause by the “open: true” setting in quasar.conf.js. Setting this to false fix the error.
-
Same problem here. I think it could be “try catched” because in Linux it will fail always.
-
@imagina said in Quasar in Docker:
Same problem here. I think it could be “try catched” because in Linux it will fail always.
It fails only in Docker, doesn’t fail in Linux host.
I am going to prepare some PR for docs with quick Docker reference for development with hot reload etc, but it will happen over next 2 weeks as I am pretty busy now.
-
I experience the same issue, I use yarn instead of npm:
FROM node:latest WORKDIR app COPY * /app/ # Install vue first and then quasar RUN yarn global add vue-cli RUN yarn global add quasar-cli RUN yarn install RUN quasar dev EXPOSE 8080