@atomservice/config 0.1.14 → 0.1.15
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 +3 -3
- package/server/Containerfile +2 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomservice/config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "配置中心原子服务:基于 Bun 的高性能配置管理服务",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "openorson",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
".": "./src/index.ts"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atomservice/gateway": "0.1.
|
|
32
|
+
"@atomservice/gateway": "0.1.15"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@atomservice/core": "0.1.
|
|
35
|
+
"@atomservice/core": "0.1.15"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/server/Containerfile
CHANGED
|
@@ -31,21 +31,14 @@ RUN apt-get update \
|
|
|
31
31
|
&& apt-get install -y --no-install-recommends curl \
|
|
32
32
|
&& rm -rf /var/lib/apt/lists/*
|
|
33
33
|
|
|
34
|
-
# Create non-root user
|
|
35
|
-
RUN groupadd --system --gid 1001 app \
|
|
36
|
-
&& useradd --system --uid 1001 --gid app --no-create-home app
|
|
37
|
-
|
|
38
34
|
WORKDIR /app
|
|
39
35
|
|
|
40
36
|
# Copy compiled binary
|
|
41
|
-
COPY --from=builder
|
|
37
|
+
COPY --from=builder /build/dist/config-server ./config-server
|
|
42
38
|
|
|
43
39
|
# Prepare data directory (mount a volume here for persistence)
|
|
44
|
-
RUN mkdir -p /data
|
|
45
|
-
|
|
46
|
-
USER app
|
|
40
|
+
RUN mkdir -p /data
|
|
47
41
|
|
|
48
|
-
# Default data path — compose will bind-mount host:${containerName}/data here
|
|
49
42
|
ENV CONFIG_DB_PATH=/data/config.db
|
|
50
43
|
VOLUME ["/data"]
|
|
51
44
|
EXPOSE 4000
|