cmyr-template-cli 1.28.8 → 1.28.10
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 +1 -1
- package/templates/Dockerfile +4 -4
- package/templates/README.md +1 -1
package/package.json
CHANGED
package/templates/Dockerfile
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
FROM caomeiyouren/alpine-nodejs:latest
|
|
1
|
+
FROM caomeiyouren/alpine-nodejs:latest AS nodejs
|
|
2
2
|
|
|
3
3
|
RUN npm config set registry https://registry.npmmirror.com && \
|
|
4
4
|
pnpm config set registry https://registry.npmmirror.com &&
|
|
5
5
|
|
|
6
|
-
FROM caomeiyouren/alpine-nodejs-minimize:latest
|
|
6
|
+
FROM caomeiyouren/alpine-nodejs-minimize:latest AS runtime
|
|
7
7
|
|
|
8
8
|
# 阶段一:构建阶段
|
|
9
|
-
FROM nodejs
|
|
9
|
+
FROM nodejs AS builder
|
|
10
10
|
|
|
11
11
|
WORKDIR /home/app
|
|
12
12
|
|
|
@@ -19,7 +19,7 @@ COPY . /home/app
|
|
|
19
19
|
RUN pnpm run build
|
|
20
20
|
|
|
21
21
|
# 阶段二:缩小阶段
|
|
22
|
-
FROM nodejs
|
|
22
|
+
FROM nodejs AS docker-minifier
|
|
23
23
|
|
|
24
24
|
WORKDIR /home/app
|
|
25
25
|
|
package/templates/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</a>
|
|
7
7
|
<% } -%>
|
|
8
8
|
<% if (projectVersion && isJSProject) { -%>
|
|
9
|
-
<img alt="Version" src="https://img.shields.io/github/package-json/v/<%= packageName %>.svg" />
|
|
9
|
+
<img alt="Version" src="https://img.shields.io/github/package-json/v/<%= authorGithubUsername %>/<%= packageName %>.svg" />
|
|
10
10
|
<% } -%>
|
|
11
11
|
<% if (isGithubRepos && isInitSemanticRelease) { -%>
|
|
12
12
|
<a href="<%= repositoryUrl %>/actions?query=workflow%3ARelease" target="_blank">
|