Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build issues with add-typescript-to-cypress #21

Open
dereklin opened this issue Apr 29, 2018 · 1 comment
Open

Docker build issues with add-typescript-to-cypress #21

dereklin opened this issue Apr 29, 2018 · 1 comment

Comments

@dereklin
Copy link

Here is my github repo: https://github.com/dereklin/nrwl-nx-workspace-demo/tree/add-typescript-to-cypress

The branch is add-typescript-to-cypress

When I do npm i and then npm run build:app1, everything works fine.

When I do docker build -t nrwl-nx-workspace-demo:app1 .

I get these error messages:

> @bahmutov/add-typescript-to-cypress@2.0.0 postinstall /app/node_modules/@bahmutov/add-typescript-to-cypress
> node src/add-plugin.js

(node:5) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added. Use emitter.setMaxListeners() to increase limit
⚠️ Cannot find "cypress" folder in /app
Please scaffold Cypress folder by opening Cypress once
and then installing this package again
See: https://github.com/bahmutov/add-typescript-to-cypress/issues/3

Here is my Dockerfile:

# Stage 0, based on Node.js, to build and compile Angular
#docker build -t nrwl-nx-workspace-demo:app1 .
#docker run -d -p 80:80 nrwl-nx-workspace-demo:app1
FROM node:8.11.1 as node
WORKDIR /app
COPY package.json /app/
RUN npm install
COPY ./ /app/
ARG env=prod
RUN npm run build:app1

# Stage 1, based on Nginx, to have only the compiled app, ready for production with Nginx
FROM nginx:alpine
COPY --from=node /app/dist/apps/app1/ /usr/share/nginx/html
COPY ./nginx-custom.conf /etc/nginx/conf.d/default.conf

When I remove

"@bahmutov/add-typescript-to-cypress": "2.0.0",

from package.json, my docker build works

@marcosfede
Copy link

any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants