@toa.io/operations 0.20.0-dev.1 → 0.20.0-dev.11
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": "@toa.io/operations",
|
|
3
|
-
"version": "0.20.0-dev.
|
|
3
|
+
"version": "0.20.0-dev.11",
|
|
4
4
|
"description": "Toa Deployment",
|
|
5
5
|
"homepage": "https://toa.io",
|
|
6
6
|
"author": {
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@toa.io/filesystem": "0.20.0-dev.
|
|
30
|
-
"@toa.io/generic": "0.
|
|
31
|
-
"@toa.io/yaml": "0.20.0-dev.
|
|
29
|
+
"@toa.io/filesystem": "0.20.0-dev.11",
|
|
30
|
+
"@toa.io/generic": "0.20.0-dev.11",
|
|
31
|
+
"@toa.io/yaml": "0.20.0-dev.11",
|
|
32
32
|
"execa": "5.1.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "8ccc0289a7af2dfb7fabf615f0a71bc8adf41b1c"
|
|
35
35
|
}
|
|
@@ -5,14 +5,15 @@ FROM node:18.16.0-alpine3.17
|
|
|
5
5
|
ENV NODE_ENV=production
|
|
6
6
|
RUN if [ {{runtime.registry}} != undefined ]; then npm set registry {{runtime.registry}}; fi
|
|
7
7
|
RUN if [ {{runtime.proxy}} != undefined ]; then npm set proxy {{runtime.proxy}}; fi
|
|
8
|
-
RUN npm i -g @toa.io/runtime@{{runtime.version}}
|
|
8
|
+
RUN npm i -g @toa.io/runtime@{{runtime.version}} --omit=dev
|
|
9
9
|
|
|
10
10
|
WORKDIR /composition
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
# run 'npm i' in each component
|
|
14
|
-
RUN find . -maxdepth 1 -type d \( ! -name . \) -exec /bin/sh -c "cd '{}' && if [ -f package.json ]; then npm i; fi" \;
|
|
11
|
+
COPY --chown=node:node . /composition
|
|
15
12
|
|
|
16
13
|
{{build.run}}
|
|
17
14
|
|
|
15
|
+
# run 'npm i' in each component
|
|
16
|
+
RUN find . -maxdepth 1 -type d \( ! -name . \) -exec /bin/sh -c "cd '{}' && if [ -f package.json ]; then npm i --omit=dev; fi" \;
|
|
17
|
+
|
|
18
|
+
USER node
|
|
18
19
|
CMD toa compose *
|
|
@@ -3,10 +3,12 @@ FROM node:18.16.0-alpine3.17
|
|
|
3
3
|
ENV NODE_ENV=production
|
|
4
4
|
RUN if [ {{runtime.registry}} != undefined ]; then npm set registry {{runtime.registry}}; fi
|
|
5
5
|
RUN if [ {{runtime.proxy}} != undefined ]; then npm set proxy {{runtime.proxy}}; fi
|
|
6
|
-
RUN npm i -g @toa.io/runtime@{{runtime.version}}
|
|
6
|
+
RUN npm i -g @toa.io/runtime@{{runtime.version}} --omit=dev
|
|
7
7
|
|
|
8
8
|
WORKDIR /service
|
|
9
|
-
|
|
10
|
-
RUN npm i
|
|
9
|
+
COPY --chown=node:node . /service
|
|
11
10
|
|
|
11
|
+
RUN npm i --omit=dev
|
|
12
|
+
|
|
13
|
+
USER node
|
|
12
14
|
CMD toa serve .
|