Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1.更改Dockerfile文件
加入安装nginx 命令RUN apt-get update && \ apt-get install -y nginx
加入覆盖nginx配置文件的命令COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
更改暴露的端口号由后端服务的3000端口更改为nginx的8080端口
2.更改docker-run.sh 文件加入启动nginx的命令 nginx -g 'daemon on;'
3.修改docker-compose.yaml 文件将项目将暴露的"8080:3000" 更改为 "8080:8080"
4.在项目根目录新建了一个nginx的文件夹里面创建nginx.conf 用于覆盖默认的nginx配置