react-redux-starter-kit icon indicating copy to clipboard operation
react-redux-starter-kit copied to clipboard

Docker container issue

Open pbhisay opened this issue 8 years ago • 1 comments

I've been using the boiler plate version 3.0.0-alpha.3 for my project.

I still have the raw un-changed version which I used to create a docker container just for testing.

After I convert the app into a docker image successfully and also run it, the logs show 'webpack compiled successfully', but when i try to hit the url (localhost:3000), the browser just keeps loading and loading. It fetches the name of the project right which you can see on the browser tab, but the page never really loads and the browser spinner stops to a blank page after 3-5 mins.

I use this command to create container from image: docker run -p 3000:3000 -d <image-ID>

Dockerfile:

FROM nonprod.dtr.trusted.visa.com/cybs/base-rhel72

RUN yum install -y nodejs && yum clean all

RUN npm config set proxy null; npm config set https-proxy null; npm config set strict-ssl false;  
npm config set registry <corporate_registry>
RUN mkdir -p /usr/src/app


WORKDIR /usr/src/app

COPY package.json /usr/src/app

RUN npm install node-sass --sass-binary-site=<corporate-url>

RUN npm install

COPY . /usr/src/app

EXPOSE 3000

ENTRYPOINT ["npm", "start"]

What could be the issue? Any ideas?

UPDATE:

I tried grabbing the latest code as a new project and creating a docker container and it worked like a charm. Now the only thing left is to find out what significantly changed from version 3.0.0-alpha.3 to the latest version I downloaded today. Help on that would be GREAT! Thanks!

pbhisay avatar Aug 01 '17 19:08 pbhisay

So the new version works fine, but not the old one, I'm not sure what is causing it, there are plenty configurations happening so it's tough to debug what's breaking it since there are no server logs.

pbhisay avatar Aug 03 '17 15:08 pbhisay