mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-09 01:52:30 +05:30
Patch nginx config in Docker image to fix SPA routing
This commit is contained in:
parent
d25f7ca557
commit
b974707968
1 changed files with 1 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ RUN npm run build
|
|||
FROM nginx:alpine
|
||||
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
RUN sed -i 's|index index.html index.htm;|index index.html index.htm;\n try_files $uri $uri/ /index.html;|' /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Expose port 80
|
||||
EXPOSE 80
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue