invidious-redirect/Dockerfile
Perflyst 3c56df2d38
Fix nginx root location
Only index.html is accessed, no real subfolders
2021-01-22 13:27:32 +01:00

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/