Add missing robots.txt, pin version of node in Dockerfile and fix indentation of nginx.conf

This commit is contained in:
Mary 2022-09-07 09:45:52 +02:00
parent 70d6df62bd
commit 55b0c0ccaa
3 changed files with 13 additions and 11 deletions

View file

@ -1,5 +1,5 @@
# Stage build # Stage build
FROM node:lts-alpine as build-stage FROM node:16-alpine as build-stage
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN npm install

View file

@ -1,14 +1,14 @@
server { server {
listen 80 default_server; listen 80 default_server;
listen [::]:80 default_server; listen [::]:80 default_server;
location / { location / {
root /usr/share/nginx/html; root /usr/share/nginx/html;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
index index.html; index index.html;
} }
location = /robots.txt { location = /robots.txt {
root /usr/share/nginx/html; root /usr/share/nginx/html;
} }
} }

2
public/robots.txt Normal file
View file

@ -0,0 +1,2 @@
Sitemap: https://ryujinx.org/sitemap.xml
Host: https://ryujinx.org