File permissions issue in WebUi on self hosted setup makes nginx display default page instead of the nuxt app. You need to edit docker file in web directory to add RUN chmod -R 755 /usr/share/nginx/html
# build stage
FROM node:lts-alpine as build
WORKDIR /app
COPY package*.json ./
# Install pnpm
RUN npm install -g pnpm
# install python
RUN apk add --no-cache python3
RUN pnpm install
COPY . .
RUN pnpm run generate
# production stage
FROM nginx:stable-alpine as production
COPY --from=build /app/dist /usr/share/nginx/html
# Copy the nginx configuration file
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
#fix permissions to prevent showing nginx default page
RUN chmod -R 755 /usr/share/nginx/html
EXPOSE 3000
CMD ["nginx", "-g", "daemon off;"]
File permissions issue in WebUi on self hosted setup makes nginx display default page instead of the nuxt app. You need to edit docker file in web directory to add
RUN chmod -R 755 /usr/share/nginx/html