I’m deploying my React Application on Elastic Beanstalk on AWS, so I’m creating a Dockerfile in order to deploy it. The problem is that when I run my image, I can access my react application on Browser, but when I clean the cache, I just can’t access this anymore.
FROM mhart/alpine-node:11 AS builder WORKDIR /app COPY . . RUN npm install RUN npm run build FROM mhart/alpine-node RUN npm install -g serve WORKDIR /app COPY --from=builder /app/build . CMD ["serve", "-p", "80", "-s", "."]
Take a look at this in a anonymous window:
The problem is that if I do this very same thing on a non-anonymous window, I can never again open the website.
Can anyone help me?