appropriate redirect link for Docker
-
I have Docker file:
FROM cloudron/base:0.10.0 ENV PATH /usr/local/node-6.9.5/bin:$PATH WORKDIR /tmp COPY package.json /tmp/ RUN npm config set registry http://registry.npmjs.org/ && npm install WORKDIR /usr/src/app COPY . /usr/src/app RUN cp -a /tmp/node_modules /usr/src/app RUN npm run build EXPOSE 8000 CMD [ "npm", "run", "start:production" ]if I run this by:
then going to http://localhost:8000 works fine but if I want go to http://localhost:8000/about I get error:
Cannot GET /about
What should I do to set it up properly? Of course, using such a URL when developing my React app is fine.
Edit:"scripts": { "clean": "rimraf dist", "compile": "node build/scripts/compile", "build": "npm run clean && cross-env NODE_ENV=production npm run compile", "start": "cross-env NODE_ENV=development node build/scripts/start", "start:production": "cross-env NODE_ENV=production node build/scripts/start", "test": "cross-env NODE_ENV=test karma start build/karma.config", "test:watch": "npm test -- --watch", "lint": "eslint .", "lint:fix": "npm run lint -- --fix" },It appears that my start:production is poor.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login