@leverege/build-tools 2.5.42 → 2.5.44
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/lib/server/repo-init/config.tgz +0 -0
- package/package.json +1 -1
- package/src/dockreate +4 -3
|
Binary file
|
package/package.json
CHANGED
package/src/dockreate
CHANGED
|
@@ -4,8 +4,6 @@ if [ -z "$1" ]; then
|
|
|
4
4
|
exit 1
|
|
5
5
|
fi
|
|
6
6
|
|
|
7
|
-
printf "----HERE----\n" # XXX
|
|
8
|
-
|
|
9
7
|
# Global Vars
|
|
10
8
|
pluginFile="Dockerfile.plugin"
|
|
11
9
|
|
|
@@ -60,6 +58,7 @@ create_Dockerfile() {
|
|
|
60
58
|
#
|
|
61
59
|
# The FROM directive sets the Base Image for subsequent instructions
|
|
62
60
|
FROM node:${nodeimg} as intermediate
|
|
61
|
+
ENV NODE_ENV production
|
|
63
62
|
|
|
64
63
|
RUN mkdir -p /usr/src/app
|
|
65
64
|
WORKDIR /usr/src/app
|
|
@@ -104,7 +103,7 @@ DOCKERBLD
|
|
|
104
103
|
ENTRYPOINT [ "/sbin/tini", "--" ]
|
|
105
104
|
WORKDIR /usr/src/app
|
|
106
105
|
|
|
107
|
-
COPY --from=intermediate /usr/src/app /usr/src/app
|
|
106
|
+
COPY --chown=node:node --from=intermediate /usr/src/app /usr/src/app
|
|
108
107
|
|
|
109
108
|
USER ${runuser}
|
|
110
109
|
COPY ./bashrc /home/node/.bashrc
|
|
@@ -317,7 +316,9 @@ fi
|
|
|
317
316
|
create_Dockerfile "$version" "$nodeimg" "$apkadds"
|
|
318
317
|
create_bashrc "$version" "$nodeimg"
|
|
319
318
|
|
|
319
|
+
echo "Updating dependencies and workspace..."
|
|
320
320
|
rm -rf ./workspace && mkdir -p ./workspace
|
|
321
|
+
npm install
|
|
321
322
|
cp -rfp ../package*json ../dist/* ./workspace
|
|
322
323
|
|
|
323
324
|
# grab the read only npmrc token for the image
|