mirror of
https://gitea.invidious.io/iv-org/invidious-redirect.git
synced 2024-08-15 00:53:24 +00:00
3c56df2d38
Only index.html is accessed, no real subfolders
10 lines
299 B
Docker
10 lines
299 B
Docker
FROM node:14.5.0-alpine as build
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN npm install
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine as app
|
|
# fix nginx root location
|
|
RUN sed -i 's|index index.html index.htm;|try_files $uri /index.html;|g' /etc/nginx/conf.d/default.conf
|
|
COPY --from=build /app/build/ /usr/share/nginx/html/
|