set NODE_ENV to production for docker builds, avoid installing dev dependencies

This commit is contained in:
Travis Glenn Hansen 2021-03-19 09:54:06 -06:00
parent fe69045e2a
commit 2fa4d9af59
3 changed files with 3299 additions and 93 deletions

View File

@ -14,6 +14,7 @@ RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/*
ENV LANG=en_US.utf8
ENV NODE_VERSION=v12.20.0
#ENV NODE_VERSION=v14.15.1
ENV NODE_ENV=production
# install build deps
RUN apt-get update && apt-get install -y python make gcc g++
@ -53,6 +54,7 @@ RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/*
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG=en_US.utf8
ENV NODE_ENV=production
# install node
#ENV PATH=/usr/local/lib/nodejs/bin:$PATH

3386
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -20,7 +20,6 @@
"dependencies": {
"@grpc/proto-loader": "^0.5.6",
"bunyan": "^1.8.15",
"eslint": "^7.20.0",
"grpc-uds": "^0.1.6",
"handlebars": "^4.7.7",
"js-yaml": "^4.0.0",
@ -32,5 +31,8 @@
"uuid": "^8.3.2",
"winston": "^3.3.3",
"yargs": "^16.2.0"
},
"devDependencies": {
"eslint": "^7.22.0"
}
}