@winner-fed/winner-deploy 3.1.2 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@winner-fed/winner-deploy",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "Generate a publication deployed by the See platform",
5
5
  "keywords": [
6
6
  "winner",
@@ -1,12 +1,9 @@
1
1
  # Dockerfile用于生成应用镜像,非特殊情况请勿修改
2
2
  FROM package.hundsun.com/public-docker-local/freestyle/hswealth/nginx:1.18.0-alpine-see
3
- <% if (type === 'bizframe') { %>
4
- COPY dist /usr/share/nginx/html/${ name }
5
- <% } else { %>
6
- COPY dist /usr/share/nginx/html/hui-pro
7
- <% } %>
8
- RUN chmod +x /etc/nginx/* && \
9
- chmod +x /usr/share/nginx/html/* &&\
10
- chmod +x /usr/local/bin/*
11
3
 
12
- WORKDIR /usr/share/nginx/html
4
+ # 使用 WORKDIR 指令可以来指定工作目录(或者称为当前目录),以后各层的当前目录就被改为指定的目录,如该目录不存在, WORKDIR 会帮你建立目录
5
+ WORKDIR ${name}
6
+
7
+ COPY html "./"
8
+
9
+ RUN chmod -R a+x "./"