add conf
All checks were successful
Build / build (push) Successful in 8m10s

This commit is contained in:
ivamp 2024-09-13 15:49:37 +08:00
parent 087ff94b52
commit 83b70f4189
3 changed files with 11303 additions and 0 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
# docker build -t registry.leafdev.top/leaf/amber-web:v0.0.1-fix-4 .
FROM nginx:1.27.0-alpine
COPY dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

14
nginx.conf Normal file
View File

@ -0,0 +1,14 @@
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}

11281
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff