提交 d4a65f3b 编写于 作者: Z Zachary

update README

* add deploy file
上级 03e87395
**/node_modules
**/dist
FROM node:10
COPY ./ /app
WORKDIR /app
RUN npm install && npm run build
FROM nginx
RUN mkdir /app
COPY --from=0 /app/dist /app
COPY nginx.conf /etc/nginx/nginx.conf
......@@ -6,6 +6,8 @@ Some components use [element plus](https://github.com/element-plus/element-plus)
API using [NeteaseCloudMusicApi](https://github.com/Binaryify/NeteaseCloudMusicApi)
Deploying with docker + nginx, [Preview address](http://47.100.89.214:8080/MusicLibrary)
![home](./demo/demo.gif)
## Project setup
......
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
server {
listen 8080;
server_name localhost;
location / {
root /app;
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;
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册