mirror of
https://github.com/iv-org/invidious-redirect.git
synced 2024-11-23 05:49:40 +00:00
3c56df2d38
Only index.html is accessed, no real subfolders
11 lines
299 B
Docker
11 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/
|