Added Workaround for the routing problem
This commit is contained in:
parent
f35f878136
commit
8da9d76acf
@ -16,4 +16,5 @@ RUN npm run build
|
|||||||
FROM nginx:alpine AS final
|
FROM nginx:alpine AS final
|
||||||
ENV API_URL "http://localhost:5001"
|
ENV API_URL "http://localhost:5001"
|
||||||
COPY --from=build /build/dist/frontend /usr/share/nginx/html
|
COPY --from=build /build/dist/frontend /usr/share/nginx/html
|
||||||
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
CMD ["/bin/sh", "-c", "envsubst < /usr/share/nginx/html/assets/env.template.js > /usr/share/nginx/html/assets/env.js && exec nginx -g 'daemon off;'"]
|
CMD ["/bin/sh", "-c", "envsubst < /usr/share/nginx/html/assets/env.template.js > /usr/share/nginx/html/assets/env.js && exec nginx -g 'daemon off;'"]
|
8
nginx.conf
Normal file
8
nginx.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html index.htm;
|
||||||
|
try_files $uri $uri/ /index.html =404;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user