mercredi 8 novembre 2017

Ember js and Docker not finding ember-cli-build

I am unsure what the issue is because when I do ember s it works fine but when I do docker-compose up it throws this error: web_1 | Error: No ember-cli-build.js found. Please see the transition guide: http://ift.tt/292ONso

and the file is sitting the in the directory; any ideas?

Here is my dockerfile:

# 1: Use node 6.4.0 as base:
        FROM node:6.4.0


        # Install Ember CLI and Bower and NPM
        RUN npm install
        RUN npm install -g ember-cli@2.7.0
        RUN npm install -g bower

        # install watchman
        RUN \
            git clone http://ift.tt/1NDIdGH &&\
            cd watchman &&\
            git checkout v3.5.0 &&\
            ./autogen.sh &&\
            ./configure &&\
            make &&\
            make install

        # Expose the app and live-reload ports:
        EXPOSE 4200 35730

        # Set the default command:
        CMD ["ember", "server", "--live-reload-port", "35730"]

docker-compose file: version: '2' services: web: image: danlynn/ember-cli:2.7.0 build: context: . dockerfile: Dockerfile command: ember server --live-reload-port 35730 #entrypoint: /usr/src/app/development-entrypoint

      volumes:
        # Mount the app code inside the container's `/usr/src/app` directory:
        - .:/usr/src/app

      # Keep the stdin open, so we can attach to our app container's process
      # and do things such as debugging, etc:
      stdin_open: true

      # Enable sending signals (CTRL+C, CTRL+P + CTRL+Q) into the container:
      tty: true

      ports:
        # Bind the host's 4200 port to the container's ember app server
        # port 4200:
        - 4200:4200
        # Bind the host's 35730 port to the container's ember cli live reload
        # server port 35730:
        - 35730:35730




Aucun commentaire:

Enregistrer un commentaire