add-typescript-to-cypress icon indicating copy to clipboard operation
add-typescript-to-cypress copied to clipboard

Docker build issues with add-typescript-to-cypress

Open dereklin opened this issue 7 years ago • 1 comments

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/[email protected] 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

dereklin avatar Apr 29 '18 03:04 dereklin

any updates on this?

marcosfede avatar Nov 21 '19 18:11 marcosfede