create-young-proj 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/template-vitepress/Dockerfile +6 -2
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
3
|
|
4
|
+
## v1.5.0
|
5
|
+
|
6
|
+
[compare changes](https://github.com/BluesYoung-web/create-young-proj/compare/v1.4.0...v1.5.0)
|
7
|
+
|
8
|
+
### 🩹 Fixes
|
9
|
+
|
10
|
+
- 🩹 fix Dockerfile ([b29b402](https://github.com/BluesYoung-web/create-young-proj/commit/b29b402))
|
11
|
+
|
12
|
+
### ❤️ Contributors
|
13
|
+
|
14
|
+
- 张扬 <bluesyoung_web@163.com>
|
15
|
+
|
4
16
|
## v1.4.0
|
5
17
|
|
6
18
|
[compare changes](https://github.com/BluesYoung-web/create-young-proj/compare/v1.3.0...v1.4.0)
|
package/package.json
CHANGED
@@ -13,9 +13,14 @@ ENV WORK_DIR=/app
|
|
13
13
|
# 工作目录
|
14
14
|
WORKDIR /app
|
15
15
|
|
16
|
+
# 上次修改时间,依赖 git 环境
|
17
|
+
# 换源,安装 git
|
18
|
+
RUN sed -i 's@/deb.debian.org@/mirrors.aliyun.com@g' /etc/apt/sources.list \
|
19
|
+
&& apt-get update && apt-get install -y git
|
20
|
+
|
16
21
|
# 没有压缩包,首选 COPY,如果需要自动解包或下载,则使用 ADD
|
17
22
|
|
18
|
-
# 对比依赖是否变更
|
23
|
+
# 对比依赖是否变更(todo: 按需修改)
|
19
24
|
COPY package.json yarn.lock /app/
|
20
25
|
|
21
26
|
# 设置npm仓库 + 下载依赖,上面的文件如果没有变化则跳过下载,直接使用缓存
|
@@ -34,7 +39,6 @@ FROM intranet-harbor.laiyouxi.com/base/alpine/node:20.9.0
|
|
34
39
|
WORKDIR /app
|
35
40
|
# 复制源码
|
36
41
|
COPY boot.mjs /app/
|
37
|
-
COPY config /app/config
|
38
42
|
# 复制编译后的代码
|
39
43
|
COPY --from=builder /app/.output /app/.output
|
40
44
|
|