File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ WORKDIR /app
7
7
# 复制 package.json 和 package-lock.json文件到容器中
8
8
COPY package*.json ./
9
9
10
+ # 删除pnpm-lock.yaml
11
+ RUN rm pnpm-lock.yaml
12
+
10
13
# 安装依赖
11
14
RUN npm install pnpm
12
15
RUN pnpm install
@@ -46,7 +49,7 @@ EXPOSE 80
46
49
CMD ["nginx" , "-g" , "daemon off;" ]
47
50
48
51
# 构建Dockerfile
49
- # docker build --build-arg ACCESS_TOKEN=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 -t your_image_name .
52
+ # docker build --build-arg ACCESS_TOKEN=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 -t resume .
50
53
51
54
# 启动
52
55
# docker run -p 80:80 --name your_container_name your_image_name
Original file line number Diff line number Diff line change 1
1
server
2
2
{
3
- listen 8080 ;
4
- listen 443 ssl http2;
5
- server_name test. 91huajian.cn;
3
+ listen 80 ;
4
+ listen 443 ssl http2;
5
+ server_name 91huajian.cn;
6
6
index index.php index.html index.htm default.php default.htm default.html;
7
- root /app /dist;
7
+ root /www/wwwroot/web/resume-design /dist;
8
8
9
9
#SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则
10
10
#error_page 404/404.html;
You can’t perform that action at this time.
0 commit comments