We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4f4ee6 commit 65fe9a4Copy full SHA for 65fe9a4
.dockerignore
@@ -10,7 +10,6 @@ docs
10
.coverage
11
pkg
12
test
13
-node_modules
14
kubernetes
15
wallaby.js
16
docker
docker/Dockerfile
@@ -16,8 +16,11 @@ COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn/releases .yarn/releases
17
18
ENV YARN_HTTP_TIMEOUT=300000
19
+# set production env install will not install devDependencies
20
+ENV NODE_ENV=production
21
-RUN yarn install --immutable
22
+# if node_modules does not exist, run it, otherwise skip
23
+RUN test -d node_modules || yarn install --immutable
24
25
# Fix issue with serialport bindings #2349
26
RUN npm_config_build_from_source=true yarn rebuild @serialport/bindings-cpp
0 commit comments